开发者

How to create a file in titanium?

开发者 https://www.devze.com 2023-02-22 16:23 出处:网络
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

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

精彩评论

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