开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜