system.DocumentsDirectory - how to retrieve

I write a log file to my system.DocumentsDirectory, but how do I retrieve this for viewing in a normal text editor? or is there a way to just write a text file to the sdcard?

I have a bug that’s pretty rare so there’ll be a lot of input of my trying to replicate it before it actually happens so there’ll be quite a bit of output and therefore not really feasible to view it in a shell etc. [import]uid: 71799 topic_id: 14824 reply_id: 314824[/import]

Have you had a look at the suggestion from J Whye (Corona Project Manager) he had a wonderful article (I think on gamedevnation) on how to view the debug logs from a running app. It involved posting these onto postbin and I kind of like that method, it has actually worked for me to show a client that wanted to know if an app would work with their servers. This was proof enough for them.

BTW, SDCard = Android, (not 100% sure) but if you save your app on the SD Card, then the documents directory could be on the SD card as well, which you could read from your PC/Mac

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 14824 reply_id: 54792[/import]

Ahh, nah i never saw that article, i’ll have a look at it cheers!

Yeah sd is for android, haven’t seen my log created there yet, i’ll have to check logcat tonight and see if it’s getting verified in my code, cheers :slight_smile: [import]uid: 71799 topic_id: 14824 reply_id: 54811[/import]

Even if the app is on the SD Card, data stored in the system.DocumentsDirectory is not. You can check this by comparing Internal Storage space before and after moving the app to SD card.

We really need for the data to move tot the SD Card along with the app please. [import]uid: 4596 topic_id: 14824 reply_id: 57451[/import]

I just email the file through the app. It usually accesses text files but .db didn’t work

I just email the file through the app. It usually accesses text files but .db didn’t work