Hi its me the student again.
This time i read a file but the machine cannot tell if the end of the file has been reached.
i am using
FILE *fp /* pointing to a stream */
while(fp!= EOF)
{
do so and so
}
When i open the stream which is a text file, the last line read from another file is repeated forever, if i dont user break the program.
Please help, thank you Ganonshin. Bye.



LinkBack URL
About LinkBacks


