Write entire file: Difference between revisions
m
Moved Groovy entry into alphabetical order
(Added Kotlin) |
m (Moved Groovy entry into alphabetical order) |
||
Line 140:
ioutil.WriteFile("path/to/your.file", []byte("data"), 0644)
}</lang>
=={{header|Groovy}}==▼
<lang Groovy> new File("myFile.txt").text = """a big string▼
that can be ▼
splitted over lines▼
"""▼
</lang>▼
=={{header|Haskell}}==
Line 187 ⟶ 194:
File("output.txt").writeText(text)
}</lang>
▲=={{header|Groovy}}==
▲<lang Groovy> new File("myFile.txt").text = """a big string
▲that can be
▲splitted over lines
▲"""
▲</lang>
=={{header|Lingo}}==
|