Instantly share code, notes, and snippets.

Embed
What would you like to do?
#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