//To read the file "src/myFiles/sampleFile.txt"
var myFile:File = File.applicationDirectory;
myFile = myFile.resolvePath("myFiles\\sampleFile.txt");
var myFileStream:FileStream = new FileStream();
myFileStream.open(myFile, FileMode.READ);
var fileData:String = myFileStream.readUTFBytes(myFileStream.bytesAvailable);
No comments:
Post a Comment