|
-
September 25th, 2009, 08:32 PM
#1
New to foundation class : CArchive
I use CArchive to store a string
into a file
But I always get an odd character (a square shaped) on top of the file,
--------
Cfile f("t.txt",Cfile::modecreate|cfile:modewrite);
CArchive ar(&f,carchive::store);
Cstring s="show me the square";
ar<<s;
--------
Could you help me please ? 
Thank you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|