Commit e4ca1df5 authored by desiredeveloper's avatar desiredeveloper

final sach

parent ace2580e
No preview for this file type
...@@ -348,9 +348,9 @@ int main(int argc, char *argv[]) ...@@ -348,9 +348,9 @@ int main(int argc, char *argv[])
if (argc == 2) if (argc == 2)
{ {
fp = fopen(argv[1], "r"); fp = fopen(argv[1], "r");
if (fp < 0) if (fp==NULL)
{ {
printf("ERROR:File doesn't exist"); printf("ERROR:File doesn't exist\n");
return -1; return -1;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment