View Full Version : Writing a TXT file

21 Aug 2013, 9:03 AM
Hello everybody!

Is there a way to create and write a file on Sencha Touch?

I need to create a log file wich should store some information when the user make some actions with the app.

I thought I could save each action on a Store and then, when I want to check those actions write it all on a TXT file.

Someone have any idea about if it's possible? Or could someone give me a guide about how do that?

22 Aug 2013, 9:58 AM
Are you looking to store the TXT file on a server or on the device's filesystem?

If you app is packaged correctly, you can use something like the File API provided with PhoneGap:

(http://docs.phonegap.com/en/3.0.0/cordova_file_file.md.html#FileWriter)If you don't have a packaged app, I suggest you look into using a server-side implementation.