Do it in two steps. First read the edit control into a CString variable. Then write the CString variable to file.
mfc c++ update text file from edit control
Question
I know how to read a txt file, and show it's contents in an edit control, but how do I write to a txt file updating/overwriting it's contents from an edit control?
i've looked everywhere, and although I can write to a file with set text, I want to be able to write into the edit control box, and then click the update button which will update the notes txt file.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow