|
-
May 9th, 1999, 02:53 PM
#1
How to read/write CString from/in CFile ?
please help me, how can I read and write CStrings from/into CFiles ?
I tried e.g
pChar=LPCTSTR(sString);
pFile->Write(pChar, sString.GetLength()+1);
or
pFile->Write(sString, sString.GetLength());
and
pFile->Read(sString.GetBuffer(512), 512);
sString.ReleaseBuffer();
what is wrong ?
How can i write and retrieve that damned CStrings ?
Greetin'
Jay
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
|