mhd-it
asked on
Write and read an object in binary file
hi there
i wanna to write and read a complex data as a binary ..in and from a binary file
thanks
i wanna to write and read a complex data as a binary ..in and from a binary file
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.parashift.com/c++-faq-lite/serialization.html
will give you a head start. also check out serialization12.zip under
http://groups.yahoo.com/group/boost/files/
-- ba
Did any of those responses help?
If any did, you should select the response(s) that helped you, and grade it (them).
If not, perhaps a clarifying question would help.
If any did, you should select the response(s) that helped you, and grade it (them).
If not, perhaps a clarifying question would help.
ASKER
thanks for all guys ..who's help me
You are most welcome.
#include <fstream>
ofstream fout;
int i=233;
fout.open("data");
fout<<i;
fout.close();
Reading it back in is the analogous process with an file input stream.