files = "Director/images.txt"; f=Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory,files); f.write(this.responseData);when i compile with 1.5 it's work well the file is save in the Ressources/Directory/ but when i tried with 1.8.0.1 or 1.8 it's didnt work. Any Idea ?? thanks
2 Answers
if you're developing for android, put './' in front of the file path:
files = "./Director/images.txt";also, is it Director or Directory (note 'y' at the end of the folder name)?
According to API Docs - resourcesDirectory is read-only directory.
You should use applicationDataDirectory or tempDirectory instead.
Best,
Minh
Your Answer
Think you can help? Login to answer this question!