JanetDocsI'm feeling luckyGithub sign in

file/write



    cfunction

    (file/write f bytes)
    
    Writes to a file. 'bytes' must be string, buffer, or symbol. Returns
    the file.


2 examplesSign in to add an example
Loading...
# 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)
terminalcommand
#!/usr/bin/env janet
# echo stdin to stdout.
(file/write stdout (file/read stdin :all))
cellularmitosis