f8dea49d1c81dd6d637be370dd1062502279a57c
9 printf("Enter the name of the file you wish to see\n");
12 fp
= fopen(fname
, "r"); /* read mode */
14 perror("Error while opening the file.\n");
18 printf("The content of %s file is :\n", fname
);
20 while((ch
= fgetc(fp
)) != EOF
)