[SOLVED] File IO on the simulator

Im not sure if this should go here of in the lua forum but here it is.

I am learning about file IO and i believe I am doing everything correctly but the simulator wont save the files. anyway for me to figure out where the simulator would save the files so I can go look and see if its there? i tried showing the path on screen but it gave me an error. heres the code im using to create the file:

begin\_time = os.date("\*t"); local pathToFile = system.pathForFile("user.dat", system.DocumentsDirectory); local myFile = io.open(pathToFile, "w"); myFile:write(begin\_time.min); io.close(myFile); myFile = nil;

Edit: nevermind, just found it in the appData>roaming>ansca>corona simulator>appName [import]uid: 133512 topic_id: 23452 reply_id: 323452[/import]

Are you on Mac? If so, go;

Library* > Application Support > Corona Simulator

Then in there find your file name, open it, view documents.

*IMPORTANT: If you are on Lion to get to the correct library click onto your desktop, then click GO in the menu bar up top and hold down ALT. The library will then appear in that list. [import]uid: 52491 topic_id: 23452 reply_id: 94041[/import]