X-Git-Url: https://git.piment-noir.org/?p=TD_C.git;a=blobdiff_plain;f=TP_12%2Fexo2%2Fexo2.c;h=f8dea49d1c81dd6d637be370dd1062502279a57c;hp=199d2999a17ca881693989ab8c331274d66fa8e7;hb=9091c930ead4158566055f1db38c206652d42c4a;hpb=d386f336ee11044d90a3224a407999cf99657dad diff --git a/TP_12/exo2/exo2.c b/TP_12/exo2/exo2.c index 199d299..f8dea49 100644 --- a/TP_12/exo2/exo2.c +++ b/TP_12/exo2/exo2.c @@ -7,11 +7,7 @@ int main() { 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) {