I’m rewriting an old tool (which I don’t have the original code) and one of the features is to print a list with filenames which his ID.
My goal is to get this result:
but I’m getting this result:
The idea is to do this using string format, but the result is not the expected one, the code I’m using is this one:
for(int i = 0; i < files.Length; i++)
{
string FileLabel = files[i];
ws.WriteLine("{0,-14}{1}", FileLabel, GetHexNumber(0x1A000000 + i));
}
The idea is to use whitespace between the “part A” and “part B”, not tabs. The original tool that prints this list seems that his logic is that when the part A is one character away from reaching part B adds 14 whitespaces, but not sure how can I do this, or if I can do it with string.format.
How can I get this result?