I'm new to Code ::Block.I tried using the program (pg 296),to write to a disk.The program is as follows:
#include <fstream>
using name space std;
int main(int nNumberof Args, char* pszArgs[])
{
ofstream my("MyName.txt");
my<<"steve is suave and handsome\n"
<<"but getting bald"
<<endl;
system ("PAUSE");
return 0;}***********Itried replacing the "txt" with "disk", but it doesn't write to the disk in the "a" port.It gets written to the same
folder as the "txt", but cannot be opened.
?? What did miss in the book? Need help!!