FILE* fp;
printf("Enter the name of the file you wish to see\n");
- int prt = scanf("%s", fname);
- /* if (prt != 0) {
- perror("Error entering the file name.\n");
- exit(EXIT_FAILURE);
- } */
+ scanf("%s", fname);
fp = fopen(fname, "r"); /* read mode */
if (fp == NULL) {