I've just started learning C++ recently and was wondering if it has an equivelent of the C commands - fseek, fread, fwrite?
Or can I use these commands and still consider it to be C++?
I've just started learning C++ recently and was wondering if it has an equivelent of the C commands - fseek, fread, fwrite?
Or can I use these commands and still consider it to be C++?
look at the fstream objects. they wrap up most of that stuff
ifstream = input file
ofstream = output file
always looking, make an offer. get me out of this place.
You can still use those functions as well. Just include cstdio and use namespace std.
if u use the c++ way u need to #include <fstream>
fstream::read()
fstream::seekg()
fstream::tellg()
You get the idea.