
November 25th, 2012, 11:34 AM
|
|
Registered User
|
|
Join Date: Nov 2012
Posts: 5
Time spent in forums: 1 h 34 m 53 sec
Reputation Power: 0
|
|
|
Using fgets and fprint
char s[100];
FILE *fp;
fp=fopen("E:\\proyectofinal\\nueve.txt", "r");
fgets(s,100,fp) ;
fprintf(stdout, "%s", s);
fclose(fp);
I want it to scan and print the whole of my file, but it only prints out the first line of it. What am I doing wrong?
|