how do I save a file into the application install directory, so that I can open/load it again after the app is closed?
I mean, where do I save it during debugging and releasing?

ares623 wrote:how do I save a file into the application install directory, so that I can open/load it again after the app is closed?
I mean, where do I save it during debugging and releasing?
var saveFile:File = File.applicationStorageDirectory;
saveFile.resolvePath("colors.txt");
trace(saveFile.exists); //traces 'true'
var writer:FileStream = new FileStream();
writer.open(saveFile, FileMode.WRITE); //error here
saveFile = saveFile.resolvePath("colors.txt");
var saveFile:File = File.applicationStorageDirectory.resolvePath("colors.txt");
fileStream.close()var saveFile:File = File.documentsDirectory;
saveFile = saveFile.resolvePath("colors.txt");
fileStream.open(saveFile, FileMode.WRITE);
Voles wrote:@D4G I just registered an account to thank you. So, thank you very much!
Users browsing this forum: No registered users and 1 guest