Above code opens a file and write some data which are in a Edit box (RichEdit) into the file. m_remain is the CString variable which has bind to the Edit box. Problem is that when i write to the file, only the first few chars in the Edit box is written to the file. No problem with m_remain coz when i debug, m_remain shows what's in the edit box correctly. Whatz happening here? Some help please.
m_cfile.Open(m_txtfilepath, CFile::modeCreate|CFile::modeWrite, NULL);