Skip to content

Instantly share code, notes, and snippets.

@aaukhatov
Created May 31, 2017 10:17
Show Gist options
  • Save aaukhatov/ded7ff5ff18781c9114207d709a039fb to your computer and use it in GitHub Desktop.
Save aaukhatov/ded7ff5ff18781c9114207d709a039fb to your computer and use it in GitHub Desktop.
How to write String to File by Groovy
String content = 'Some text'
def myFile = new File('mySuperFile.txt')
myFile.write(content)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment