fgets read only one line of your file. it reads text until it finds a \n
"The fgets function reads a string from the input stream argument and stores it in string. fgets reads characters from the current stream position to and including the first newline character, to the end of the stream, or until the number of characters read is equal to n â 1, whichever comes first."
If you appear to get more than that, i suggest a line by line debug. I'm pretty sure fgets can't return multiple lines.
|