void main(){ writetotxtfile(str,"file/*how can make this part dynamically change */ "); }
char* base = "file"; char filename[256]; int index; for (index = 0; index < uppervalue; index++) { sprintf(filename, "%s%d.txt", base, index); writetotxtfile(filename, other parameters); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)