im trying to read a file has many lines but after reading it every time i tried to printf it, but it always print just the last line???/
f = fopen("text.txt","r"[IMG]http://www.free2code.net/plugins/forums/images/smilies/icon_wink.gif[/IMG];
if(!f)
return 1;
while(fgets(s,1000,f) != NULL)
sprintf(value,s);
fclose(f);
printf("%s",value);