I need a way to pad number converted to string with zeros at beginning, so at end it'll have exactly six characters (if number has lest than six characters there will be zeros at beginning). So instead of 320, resulting string will be 000320 and instead of 1, 000001. I recall doing something similar in my Turbo Pascal days (was 9, maybe 10 at the time, now I'm 23 (almost, few months missing)), but can't recall exact function or anything that would point me to it.