|
-
May 5th, 1999, 09:55 PM
#1
Saving info in editbox control to txt file?
How can I save what the user enters into an editbox to a text file (*.txt). Any suggestions?
Thanks,
Nathan Strandberg
-
May 5th, 1999, 10:26 PM
#2
Re: Saving info in editbox control to txt file?
Example, using MFC:
// assume m_editBox is a CEdit;
// error checking omitted, code not tested
CString cText;
m_editBox.GetWindowText( cText );
CFile txtFile("EditBox.txt", CFile::modeCreate | CFile::modeWrite );
txtFile.Write( cText.GetBuffer(1), cText.GetLength() );
txtFile.Close();
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
|