Hi,
I get the permission denied error while writing to a file, the code is
the file fName already exists and contains some text.
Appreciate any help.
Thanks,
Tewari
I get the permission denied error while writing to a file, the code is
Code:
string fName = "/var/tmp/" + m_messageID + ".log";
ofstream dbfile1 (fName.c_str(), ios::app);
system("uname -n >> dbfile1");
the file fName already exists and contains some text.
Appreciate any help.
Thanks,
Tewari