I need to save images captured from camera just like
“D:\storage\img1” then I press “s” another time and program should save
“D:\storage\img2” and then
“D:\storage\img3”
so everytime I press a custom key it will save an image with different name.
How to do that?
Thanks for all your responses
This code concatenates (adds) the value of
int itostring filename. This is done throughIntToStr(). Andint iloops from0to20and thus creating your “dynamic name”.File output :
PhotoImage0.txt
PhotoImage1.txt
PhotoImage2.txt
..
..
PhotoImage19.txt