views:

73

answers:

1

Hi,

In my iPhone application, there is a requirement to save a few log files in the phone(files are run-time generated). Then I have to copy/transfer the files into the pc. Can anyone suggest the best way to do this. Pls consider this as a newbee question.

Thanks in advance.. ~Dhanesh

A: 

You can write to log files in ../Documents (one directory up from the .app where the executable resides - I'm pretty sure this is the default working directory). Once you've saved them there, you can go in XCode to Window > Organizer. In there, select your iPhone/iPod, under Applications expand your app's name, and it should show "Application Data" - just click the little down arrow on the right side to download your app's data.

crimson_penguin