Write entire file: Difference between revisions

Content added Content deleted
(Added Kotlin)
m (Moved Groovy entry into alphabetical order)
Line 140: Line 140:
ioutil.WriteFile("path/to/your.file", []byte("data"), 0644)
ioutil.WriteFile("path/to/your.file", []byte("data"), 0644)
}</lang>
}</lang>

=={{header|Groovy}}==
<lang Groovy> new File("myFile.txt").text = """a big string
that can be
splitted over lines
"""
</lang>


=={{header|Haskell}}==
=={{header|Haskell}}==
Line 187: Line 194:
File("output.txt").writeText(text)
File("output.txt").writeText(text)
}</lang>
}</lang>

=={{header|Groovy}}==
<lang Groovy> new File("myFile.txt").text = """a big string
that can be
splitted over lines
"""
</lang>


=={{header|Lingo}}==
=={{header|Lingo}}==