View Single Post
Old 07-18-2005, 12:18 PM   #2 (permalink)
hrdwareguy
"Officer, I was in fear for my life"
 
hrdwareguy's Avatar
 
Location: Oklahoma City
You could do something like this:

Code:
string:filename;
for i=1 to 10000
{
  filename=IntToStr(i)+.PNG;
  while length(filename) < 12 filename='0'+filename;
  //write file here
}
where 12 is whatever lenght you want to give the filename including the .PNG extension.
__________________
Gun Control is hitting what you aim at

Aim for the TFP, Donate Today
hrdwareguy is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37