|
yes it is possible ....first you have to create a fstream object and associate it with a file to be read
fstream fin('myfile.cpp')
to read the the file in binary mode just add another parameter argument to this function
fstream fin('myfile.cpp',ios::binary)
ios=input/output stream
:: = scope resolution operator
myfile.cpp = file being read
after you read in the file in binary format then you can construct your own function(c++ classes may have certain functions for this job) to do watever you want with the data
|