I'm trying to read 1 line at a time from my file, and in the documentations it said that fgets reads one line at a time and returns a pointer to that line. So I tried it, but it wouldn't stop reading until it reached 255 bytes, even though there were lots of new lines.
Anybody know anything going wrong? Here is what it looks like:
Code:fgets(stream, 255, file);