I want counter with 5 digits, for exaple: 00000, 00001, 00002.... I creating files with this command:
FileStream Fl = File.Create(@"C:\\U\\L\\Desktop\\" + "i" + (counter) + ".xml");
Definition of counter:
int counter;
My increment:
counter++
;
Have you any idea, how i could make 5 digits counter? Thanks for all ideas:)
About custom numeric format strings
int value = 123;
Console.WriteLine(value.ToString("00000"));
// Displays 00123
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With