Hi,
Can anybody suggest away to completely overwrite the contents of a text file with some new text?
Thanks very much,
dlarkin77
Printable View
Hi,
Can anybody suggest away to completely overwrite the contents of a text file with some new text?
Thanks very much,
dlarkin77
Code:CStdioFile fl;
if(fl.Open("C:\\temp\\MyFile.txt", CFile::shareExclusive | CFile::modeWrite | CFile::modeCreate))
{
fl.WriteString("My New Text!\n");
fl.Close();
}
Thanks very much ejmw. Much appreciated.
dlarkin77