[comp.sys.ibm.pc.programmer] Reading files...

ensor@cs.utk.edu (Neal Ensor) (05/03/91)

I was just wondering if any C programmers might be able to tell me this...
I want to read a file (in binary mode) which includes 0x1A's (EOF markers)
into a buffer... How do I do this??  fread() and fgetc() will NOT read EOF's
and feof() says the file is at end-of-file on the first EOF.  Can this be
done easily?  (This EOF problem may not happen very often, just wondering
if there might be a way to read in EOFS in a file, stopping at a set buffer
length...)

Please respond in e-mail to ensor@utk.cs.edu...
Thanks...
  /\/eal Ensor.