How to create a file in titanium?
How to create a file in titanium? can anyo开发者_运维问答ne give me a piece of code for it.
http://wiki.appcelerator.org/display/guides/Working+with+Local+Data#WorkingwithLocalData-FilesystemStorage
There is a lot of helpful information in the wiki links I have provided you and in the appcelerator documentation.
I would suggest looking there before posting a question, it might save you some time
https://github.com/appcelerator/KitchenSink
var filename = 'test.txt'; var f = Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory,filename);
This should create the file automatically in your Resources folder.
精彩评论