Created
May 31, 2017 10:17
-
-
Save aaukhatov/ded7ff5ff18781c9114207d709a039fb to your computer and use it in GitHub Desktop.
How to write String to File by 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
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