CompuServe Messages

#Reading a file

    03-Oct-89 21:14:06
Sb: #Reading a file
Fm: Michael A McCormick 76046,1057
To: All
If you absatively, posolutely HAVE to read in an ASCII file a character at a time, what is the fastest command to do it with? getc()? read()? The only other constraint is that I need to read the control character(s) (CR &| LF) in the file as well. Or, perhaps, is there a way to suck a moderate size file (under 10,000 bytes) into a memory slot in one gulp and work with it there? I've noticed some difficulty useing a large buffer value in read(), is there some maximum value? -Mike