Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 17th, 2013  |  syntax: None  |  size: 0.60 KB  |  views: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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();
clone this paste RAW Paste Data