SHARE
TWEET

Untitled

a guest May 17th, 2013 22 Never
  1. File.applicationStorageDirectory.resolvePath("my-config.xml");
  2.        
  3. var fs:FileStream = new FileStream();
  4. fs.open(file, FileMode.WRITE);
  5. fs.writeUTF(myXmlContent);
  6. fs.close();
  7.        
  8. var prefsFile:File = File.applicationStorageDirectory;
  9. prefsFile = prefsFile.resolvePath("preferences.xml");
  10. stream = new FileStream();
  11. stream.open(prefsFile, FileMode.WRITE);
  12. stream.writeUTFBytes(outputStringXML);
  13.        
  14. var saveStr:String = xmlToSave.toXMLString();
  15. var file:File = new File('app-storage:/data.xml');
  16. var fs:FileStream = new FileStream();
  17. fs.open(file, FileMode.WRITE);    
  18. fs.writeUTFBytes(saveStr);
  19. fs.close();
RAW Paste Data
Top