CString str1; CFileDialog FileDlg1(FALSE," ","ch1",OFN_FILEMUSTEXIST | OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT , "TXT File(*.txt)|*.txt|All(*.*)|*.*|"); if(FileDlg1.DoModal()==IDOK) { ofstream ofs(FileDlg1.GetPathName()); ofs.write(str1,str1.GetLength()); ofs.close(); AfxMessageBox("CH1 Data Saved!"); } ofstream Data_ch1("ch1.txt", ios::out);
FileDlg1.GetPathName()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)