title: reading text files in Adobe AIR
body: <p>Recenlty i've found that not all text (.txt) files could be readed as i need in adobe air. Because of diff file encodings (unicode, utf-8, ascii).
  For example:</p>
  
  <pre><code> var fDataStream:FileStream;
   var textfile:File = new File ("C:\myfile.txt");
   var sContent:String;
   fDataStream = new FileStream();
   fDataStream.open(textfile,FileMode.READ);
   sContent = fDataStream.readUTFBytes(fDataStream.bytesAvailable);
   fDataStream.close ();
  </code></pre>
  
  <p>If 'myfile.txt' is not utf-8 encoded, then i get string like that "ÿþE"
  I know that there is fDataStream.readMultyBytes() method, but it requries string representing file charset that can't be known beforehand (input .txt files for app could be in diff charsets). I'am out of ideas.
  Thanks.</p>