ok, i need small help, to create/open a file with specific name, in order to make it clear here's a small function from my program
void CreateNew ()
{
string fileName = "helpme.txt"; //==>>> my problem!!
ofstream DataFile;
DataFile.open(fileName, ios::out | ios::app); // string fileName == filename
if (DataFile.is_open())
{
cout<<"Yeah, created"<<endl;
cout<<"Filename: "<<fileName<<endl;
}
else
{
cout<<"Call cops!"<<endl;
}
DataFile.close(); //flush
}
Thank you!