This doesn't really have anything to do with DarkGDK, but you guys are the only people who have actually helped me so here is my question.
I'm making a logger function for my program. It's basically a call when you type in like function(aMessage_); and it will send the string to the file with this code.
ofstream log;
log.open ("log.txt");
log << aMessage_;
log.close();
This works just fine and it does what it is supposed to, but the logger currently overrides whatever text is in the document and puts in the new text. How can I make the logger go down a line, and insert the aMessage_ into that line?
Thanks
FIXED: I figured out the problem, here is how i solved.)
ofstream log;
log.open ("log.txt", ios::app); //YOU ADD A COMMA/CODE
log << endl << aMessage_; //INSERT endl to drop a line.
log.close();
/*================================================*\
| Lead Programmer/Owner===============Anti-Triangle Cult=====|
\*================================================*/