|
#include <fstream.h>
writedata.open ("[file name]", ios :: out);
if (! writedata)
MessageBox ("Error while saving file", "Error", MB_OK);
else
{
writedata << variable 1 << variable 1 .... << variable 20;
writedata << "\n";
writedata.close ();
}
CFile class is also available |
|