Created
December 13, 2013 12:14
-
-
Save flox1an/7943421 to your computer and use it in GitHub Desktop.
Writing local files from the Javascript Console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var FileUtils = Packages.org.apache.commons.io.FileUtils; | |
var outFile = new Packages.java.io.File("/tmp/output.txt"); | |
FileUtils.writeStringToFile(outFile, "Hello World!", "UTF-8"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment