0

I am writing out a series of files in a while loop, they are named

1.dat, 2.dat, 3.dat...

but I need the numbers to be formatted to -

00001.dat, 00002.dat, 00003.dat... 

so that the file order is maintained when reading them back in. Is there a way to change the format of the while loop iterator?

CharlesB
  • 86,532
  • 28
  • 194
  • 218
Eamonn McEvoy
  • 8,876
  • 14
  • 53
  • 83

1 Answers1

5

Use the "format into string" node, it allows to pad integer with zeros:

enter image description here

CharlesB
  • 86,532
  • 28
  • 194
  • 218