I'm trying to add support to my program for something that would allow me to enter /Input/Images/%03d.png
/Output/Images/%03d.blah
, but I'm not sure how to do that?
I've googled around for every combination of format string, printf
, and argv
that I can think of.
I want to e able to load everything before the %03d as a constant, and loop over %03d to select multiple different input files, in order, to read them in. so it would be /Input/Images/000.png
, then /Input/Images/001.png
all the way to /Input/Images/999.png
.
tl;dr I want to handle a sequence of files, but I don't know how to do that.