Currently I'm trying to print some information in the console, but I'm trying to give all results the same padding.
Here an example, you can see CurrentBuildNumber result has one /t to much. /t is only to align everything out, it could be anything else.
So, i need a "fixed" padding for the : [result]. How can i do this correctly in my code?
Thanks!
Code:
RegistryKey registryKeys = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion");
foreach (string registryKey in registryKeys.GetValueNames())
{
Console.WriteLine(registryKey + "\t\t: " + registryKeys.GetValue(registryKey));
}