Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.55K
1 Posted Topic
Hello. I have this simple program that open a file and read lines from it and print them to screen. #include <errno.h> #include <stdlib.h> #include <stdio.h> int main() { char line[4096]; FILE *fp = fopen("/root/Desktop/testfile","r"); if( fp == NULL ) { exit(1); } while(fgets( line, sizeof(line), fp ) != NULL … |
The End.