-
-
Save wiz4host/8ad3fa7d2e06041da97a8de578f4825a to your computer and use it in GitHub Desktop.
How to write String to File by Groovy
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
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