How to put\save files into your application directory? (adobe air)

Rella picture Rella · May 20, 2010 · Viewed 22.7k times · Source

How to put\save files into your application directory? (adobe air) (code example, please)

Answer

Miroslav picture Miroslav · May 17, 2011

It's not recomended but it is possible. Construct your File reference like this:

var pathToFile:String = File.applicationDirectory.resolvePath('file.txt').nativePath;
var someFile:File = new File(pathToFile);