Logginng

Hi!
How can I do logging in the phone ?

fclose(fopen(“Test.txt”, “a”));
Should this code work ? Should it create a file in the phone ?

Thanks.

This might be helpful http://www.cocos2d-x.org/projects/cocos2d-x/wiki/How_to_saveread_file_on_different_platforms

Thanks, but this hasn’t helped me. I tried to add path to simple file creation like: “fclose(fopen(”/mnt/sdcard/Test.txt“,”a“));” - just for test.
But after I ran an application I couldn’t find “Test.txt” on sdcard… so probably, it wasn’t generated at all.
Please help - what could be wrong ? May be I’ve missed something ?

Thank you.

I’ve found a solution:
I ’ve just needed to add to the manifest this string: “”