Hey evrbdy, Iam.TheJinx(who *cares);
Alas, another problem has arisen in my desparate attemp at VC. I am tryig to use the ofstream method of appending to a file. What is wrong with this source:
(Already declared the CStrings m_str's below, IDC_NAME is an Edit Box, and make sure to #include fstream.h)
void::OnSave()
{
char m_strName[100];
CDataDlg::GetWindowText(IDC_NAME, <--need help here-->);
<--Something to put the IDC_NAME string to strName[100];-->
ofstream dFile;
dFile.Open("data.dat");
dFile<<"Name: "<<m_strName<<"\n";
dFile<<"-------------------------------\n\n\n";
//etc. of dFile<<".." below
dFile.close();
}