|
From: Dondolo M. <MDo...@OL...> - 2003-01-03 08:30:16
|
Hi all,
I am trying to write to a file in my disk by putting in the complete
pathname in the filename parameter, as my books suggest ,
----------------------------------------------------------------------------
--------------------
#include<fstream.h>
ofstream create; //declaring a file stream for writing
main()
{
create.open("C:\Service Hub\Names.dat", ios::out);
/************************************************
/*******************************************
Here I get errors unknown escape
sequences \S and \N.
How can I tell C++ that that is a part and not an escape sequence?
*************************************/
create<<"Mpho Dondolo\n";
create<<"Lindeka Dondolo\n";
create<<"Limpho Dondolo\n";
create.close();
return 0;
}
|