djcool3005
Still Fresh
- Joined
- Jan 21, 2012
- Messages
- 3
What is the newline return character on the Caanoo? I am creating a log file in my game that has all debug output written to it. I am using \n and on the PC (Windows 7) it works perfectly fine. However on the Caanoo it puts everything on one line :S
As a very basic example I have something similar to this in my game:
On the pc the log.txt file is like this:
On the caannoo however it is all on one line like this:
I know you may be thinking this isn't so bad but I have lots of other calls to write to the log file and it soon becomes unreadable when everything is put on one line.
So basically what is the newline character I need to be using for it to work properly on the Caanoo?
Thanks
As a very basic example I have something similar to this in my game:
Code:
ofstream logfile;
logfile.open("log.txt");
logfile << "This file will contain any debug outputs from the game. \n";
//Then when the game is closed this happens
logfile << "Game was closed successfully.";
logfile.close();
On the pc the log.txt file is like this:
Code:
This file will contain any debug outputs from the game.
Game was closed successfully.
On the caannoo however it is all on one line like this:
Code:
This file will contain any debug outputs from the game. Game was closed successfully.
I know you may be thinking this isn't so bad but I have lots of other calls to write to the log file and it soon becomes unreadable when everything is put on one line.
So basically what is the newline character I need to be using for it to work properly on the Caanoo?
Thanks