with open('helloworld.txt', 'w') as filehandle:
filehandle.write('Hello, world!\n')
File.write!("helloworld.txt", "Hello, world!\n")
require("fs").writeFileSync("foo.txt", "foo", "utf8")
use std::fs::{open, O_WRONLY}
fn main() {
let (mut f, _) = open("myfile.txt", O_WRONLY, 0)
let bytes = ([]byte)("Text to write")
f.write(bytes)
f.close()
}
PISZ NA BEBEN OD 10: A
"helloworld.txt" <~ "Hello, world!\n"
Languages with Disk Output include Python, Elixir, Node.js, REBOL, Jule, SAKO, Speedie, Boron
Languages without Disk Output include CSS, XML, JSON, HAML
View all concepts with or missing a canWriteToDisk measurement