Conceptually, fgets() reads a line at a time - but that's not the whole story. The drive (any drive), will have a buffer, and THAT is the amount of data that will be read from the drive, with every read - buffer #1. Buffer #2 will be one that the OS will have set up, for itself, and may vary, from ...
> This is more convenient than read-write since it allows buffering and allows trasnferring any type of data. This is utter nonsense since read/write also offer these things as well. The only thing fgets() offers is stopping at newlines, and that's easy enough to do yourself. Besides, fgets() can't deal with binary data very well (is that \0 just the end ...
I am trying to read in from a text file using fgets and then use strtok on that line. The only problem is that I do not know the actual length of that line. It will be a string (let's say 200 characters long) and an integer. But this integer could be any size that would fit in storage type int. ...