-
-
Save ntung/9abb5ba04a72329bbfeceda2c6e863d0 to your computer and use it in GitHub Desktop.
get content from url and write to a file in groovy
This file contains 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
// saving from url to a file (append) | |
new File("output.xml") << new URL ("http://some.url/some/path.xml").getText() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment