Advertisement

fgets

Started by August 22, 2000 10:34 AM
0 comments, last by Densun 24 years, 4 months ago
If I''m using fgets to read a certain amount of text from a file and it reaches a new line character before the maximum number of characters to be read, will fgets start on the next line the next time I use it?
Yes, fgets() will read up-to and including the . The next fgets() will start reading on the next line. Typically, you want your fgets() buffer to be large enough to hold any single line.

// CHRIS
// CHRIS [win32mfc]

This topic is closed to new replies.

Advertisement