-
-
Save alekseytimoshchenko/f34793fae7f4ad4311234caed355334e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fp = fopen("/tmp/test.txt", "r"); | |
if (fp == NULL) | |
{ | |
printf("\nERROR : file open failed\n"); | |
return 0; | |
} | |
while (fgets(buffer, MAX_NAME_LENGTH, (FILE *)fp)) | |
{ | |
printf("%s\n", buffer); | |
} | |
fclose(fp); | |
if (line) | |
free(line); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment