changing color with file output?

im currently working on a sort of debugging system for my game engine, wich will tell me if stuff loads correctly etc.

so i was wondering, is there a way for me to change the output color? so i can make it red if it doesent work, and green/black if it does?
This depends on what you're outputting to. C++ has no inherent concept of coloured text. What are you outputting to, using which operating system?
im ouutting to a simple .txt file.

using windows 7
No. A simple txt file contains only plain text with a handful of the standard plain text formatting symbols (like newline and tab). Plain text file format does not allow colour.

If you want to keep the simplicity of writing out standard text, but need colour, consider writing out some other format that is plain text with markup; html perhaps, or rtf or some kind of other markup.
ok thanks :)

how exactly would i go about changing the color using .rtf then?

sorry i know i ask too many questions sometimes :3
Last edited on
http://www.pindari.com/rtf1.html

Be aware that rtf does not have the most rigourously defined spec in the world ever.
"Be aware that rtf does not have the most rigourously defined spec in the world ever."

what do you mean?
Topic archived. No new replies allowed.