Topic: How to read binary files in C++?
Author: srv@cs.cmu.edu (Sundar Vedula)
Date: 1995/07/14 Raw View
I've been trying to figure out how to be able to read binary files in C++,
i.e. a file with lots of 32-bit integers into an array. I tried using read
(unistd.h) but it very strangely complains that 3 arguments is too many,
which is what the man page says (I dont know if this is a conflict between
C and C++) - could someone let me know how to do it with ifstream? Pl.
e-mail me as I read this group rarely. I use the SGI CC, if that helps..
Thanks,
-Sundar
srv@cs.cmu.edu