cfunction (file/write f bytes) Writes to a file. 'bytes' must be string, buffer, or symbol. Returns the file.
# opens a file named filename for writing, and writes Hello World! (def f (file/open "filename" :w)) (file/write f "Hello World!") (file/flush f) (file/close f)
#!/usr/bin/env janet # echo stdin to stdout. (file/write stdout (file/read stdin :all))