I got this program here which is suppose to output a .ppm file. How can i modify the Filename to get an output of out1.pmm, out2.pmm, out3.pmm .. so on and so forth for a while loop?
unsigned char Filename = "out1.ppm";
while (i < 100)
stream = fopen(Filename, "wb" ); // Open the file for write
//rest of the program;