Skip to content

Instantly share code, notes, and snippets.

@caubry
Created August 28, 2013 11:10
Show Gist options
  • Select an option

  • Save caubry/6364909 to your computer and use it in GitHub Desktop.

Select an option

Save caubry/6364909 to your computer and use it in GitHub Desktop.
var file:File = File.desktopDirectory.resolvePath("myXML.xml"); // This file doesn't exit yet
var stream:FileStream = new FileStream();
stream.open(file, FileMode.WRITE);
stream.writeUTFBytes(newOutput); // newOutput of type XML
stream.close();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment