Hi,
I'm trying a very simple code as below.
#include <fstream>
#include <iostream>
int main()
{
ofstream myfile;
myfile.open ("example.txt");
myfile << "Writing this to a file.n";
myfile.close();
return 0;
}
But getting following error on myfile.open statement...
Debug Assertion Failed!
Program: ...
File f:spvctoolsicrt_bldself_x86crtsrcopen.c
Line 308
Expression: ("Invalid sharing flag", 0)
Any idea?