From a C# console application, how can I modify the following code so that the value for the variable MyGlobals.intsequence will always be a fixed length 8 position field value with leading zeroes?
I used the variable MyGlobals.intsequence as part of file names and increment its value by 1 each time through a loop so that I can assign file names as follows with the 4th qualifier as a sequence number, 8 positions in length:
public static class MyGlobals
public static uint intsequence = 00000000;
static void Main()
MyGlobals.BASE_FILE_Name = "C.C.PAE" + "." + MyGlobals.intsequence + "." + DateTime.Now.ToString("yyyyMMdd.HHmmss");