avec dfu
Fork of Utils by
Diff: Utils.cpp
- Revision:
- 5:0f3b6e6677ef
- Parent:
- 4:872676dd87a4
- Child:
- 6:8bae97034114
diff -r 872676dd87a4 -r 0f3b6e6677ef Utils.cpp --- a/Utils.cpp Tue Feb 13 14:36:26 2018 +0000 +++ b/Utils.cpp Tue Feb 13 16:54:00 2018 +0000 @@ -110,7 +110,7 @@ fclose(fd); } -bool UTILS::File_Exist(char* File_Name) +bool UTILS::File_Exist(string File_Name) { char filename[20]; sprintf(filename, "/Root/%s.txt", File_Name); @@ -122,7 +122,9 @@ printf(" Le fichier %s n'existe pas....\r\n", filename); fclose(fd); return false; - }else{ + } + + if (Exist_Val == 1){ fclose(fd); return true; }