Thread: parse file q
View Single Post
Old 08-30-2003, 10:17 AM  
Mouton
Posse Member
 
Join Date: Dec 2002
Posts: 1,956
Default

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.
Mouton is offline