Working out some code to Write information from a 'console' to a text document
I'm trying to extend a 'console' much like the one found in quake etc so that it writes the information that is added to it throughout the game to a text document so that an outside program can search this file for a certain string. I know where to add the code but i'm not sure how to start working out the code. I think the language used is C++ or very similar. Below is a copy of the code in .ini file where i need to add this code.
the relevant part is the
I know this is really a game programming question but i thought people within the C++ forum would have done much more work on just purely making little programs or bits of code to do things like this.
Any help or ideas would be very useful because I'm very new to all this programming stuff!