Workflow for reading and writing files
- by AIR_PhillipSenn
In Workflow for reading and writing files the authors use these two lines of code:
var file = air.File.documentsDirectory;
file = file.resolvePath("AIR Test/testFile.txt");
But I think that it's using one variable for two different meanings, isn't it?
Wouldn't it be better to write them as:
var myDocumentsDirectory = air.File.documentsDirectory;
var myTestFile = myDocumentsDirectory.resolvePath("AIR Test/testFile.txt");