im to lazy to go to mgb forum's so ill post here 1) How do you delete a file using ofstream();? 2) Can you output Strings with ofstream();? 1: I need to delete a file. 2: When i use a string in the output of ofstream() it gives strange codes. String p_bounty = "Witchie NL";
ofstream file("textfile.txt", ios::app);
if (file)
{
file << "blabla:" << p_bounty << endl;
} It writes this: blabla:00C41F50