Advertisement

[fstream inquiry]

Started by March 27, 2001 09:21 PM
1 comment, last by aDasTRa 23 years, 10 months ago
i have just a quick question... i open a file using ifstream, like : ifstream inFile; inFile.open( someFileName, ios::in ); now, i want to read a specific number of bytes from the file into a buffer. any suggestions? i just need a quick and easy routine, in vc 6.0 (if that matters) thanks for the help <(o)>
<(o)>
I think this should work...
  char* buf = new char[NUM_BYTES];inFile.read(buf, NUM_BYTES);  



~~~~~~~~~~
Martee
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
Advertisement
thats seems too simple, so its probably why i didnt think of it thanks man

<(o)>
<(o)>

This topic is closed to new replies.

Advertisement