I've tried a lot of times to create a logging function (using \n to go to the next line), but with no luck. Here's my logging function:
and here's how I use it:PHP Code:
char* szDataToLog(char* Data)
fout << Data << "\n";
fout << flush;
My problem is that when I do this, when I call it another time, it deletes "data" with the new text.PHP Code:
Anyone got any ideas on how to fix this?