Skip to content

Instantly share code, notes, and snippets.

@mraza007
Created December 27, 2018 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mraza007/ee00e54d2f6703544cef74abbd7141a4 to your computer and use it in GitHub Desktop.
Save mraza007/ee00e54d2f6703544cef74abbd7141a4 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
int main(){
FILE *fPointer;
fPointer = fopen("Hello.txt","r");
char singleLine[150];
while(!feof(fPointer)){
fgets(singleLine,150,fPointer);
puts(singleLine);
}
fclose(fPointer);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment