title: How to save to a file? Using AS3 on iOS (beginner)
body: <p>I am trying to save a single word to a file, then read that word to confirm success. When the code to read the file is run, it returns no data. And, I am not able to verify that any file is created.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>// This is run at the beginning of the frame, and this does display Hello in a textArea
  
  var str:String = "Hello\n";
  feedback.text = str;
  
  
  
  // This is run when the user taps a button
  
  var myFile:File = File.applicationStorageDirectory.resolvePath("./eFiveV3/text.txt");
  
  var fileStream:FileStream = new FileStream();
  
  
  fileStream.open(myFile,FileMode.WRITE);
  
  fileStream.writeUTF(str);
  
  fileStream.close();
  
  str = "Goodbye\n";
  
  
  // if the code below is run, then the feedback box will be empty. if the code below is commented out, then the feedback box will contain the text: Goodbye
  
  fileStream.open(myFile,FileMode.READ);
  
  str = fileStream.readMultiByte(myFile.size,File.systemCh arset);
  
  fileStream.close();
  
  feedback.text = str;
  </code></pre>
  
  <hr>
  
  <p>Any help would be greatly appreciated :)</p>