Is it possible to read a whole file at once with text files, or can I only use fgets and is that the most data I can fetch at any time? (fread() doesn't work on text files, I've experienced and then been told ;-)).
Thanks in advance,
PS: And suppose I use fseek, ftell, to get the filesize of a file, is that size+1 the correct size for the buffer to read in the complete file using series of fgets calls?