CStdioFile File;
File.Open("myFile.txt",CFile::modeNoTruncate | CFile::modeCreate |
CFile::modeWrite);
File.SeekToEnd();
CString s;
GetDlgItemText(IDC_EDIT1, s);
File.WriteString(s);
GetDlgItemText(IDC_EDIT2, s);
File.WriteString(s);
GetDlgItemText(IDC_EDIT3, s);
File.WriteString(s);
...... and so on
File.Close();