Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing to files ... 1

Status
Not open for further replies.

josphin

Programmer
Joined
Apr 5, 2003
Messages
19
Location
BE
Another fairly easy problem for you experts out there, i guess. In the MSDN library stands an example for writing an array to files, now i want to write/read a CArray to/from a file. How, please ???
THX!
 
CArray::Serialize

or you can use CArchive's operator<<
 
can you give me a little bit more explanation about this please ???
 
Code:
CFile file(&quot;file.dat&quot;,CFile::modeRead | CFile::shareExclusive);
CArchive ar(&file);

m_array.Serialize(ar);
 
thank you very, very much !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top