I want to create several files at once containing the same data. Is this possible?
I tried using a variable in the file pointer and file name:
int tel;
for (tel = 0; tel < 200; tel++)
{
FILE *bestand_patienten[tel] = fopen("patienten/patientent[tel].txt", "w");
fprintf (bestand_patienten[tel], "hallo");
}
Didn't work.