I have a question about sprintf function. It is correct that the function is for display a char continously depend on the int i within for loop. And, as a result, the file name Name will be written in directory folder as Name_data.
Code:
static char *DIR = "C:\\:***/***/Name_data";
static char Name[i][15]={ "***","***",....,"***"};
FILE *FileFunction(.....){File control for write or read
}
FILE *output;
char filename_output[100];
int i;
for(i=0;i<10;i++){
sprintf(filename_output,"%s/Min_%s",DIR,Name[i]);
output = FileFunction(filename_output,"w");
}