I wanna create a file in C++ with a long name, maybe:
so I put it as a char*
string file("C:\documentation\PackageFrameWriter\PackageFrameWriter.html") ;
ofstream fileHandler(file.c_str(), ios:ut);
but it keeps telling me there's an error creating the file:
cout << "error" << endl;
when I got desperated, I changed the file string for something like
file = "hello.html"
And it worked correctly... my guess is that I cannot create a file with such a long name right? is it true? is there a way around?
thanks for you time!