Possible Duplicate:
Number formatting: how to convert 1 to "01", 2 to "02", etc.?
How can I convert int to string using the following scheme?
1converts to0001123converts to0123
Of course, the length of the string is dynamic. For this sample, it is:
int length = 4;
How can I convert like it?