it does print the first file, after that it gives blank for other filesCode:int main(int argc, char *argv[]) { int ReadFile=argc-1; while(ReadFile!=1) { FILE *pPoint = fopen (argv[ReadFile],"r"); if (pPoint==NULL) return 0; . .... .... do something fclose (pPoint); printf("\n\n"); ReadFile=ReadFile-1; fflush(pPoint); }