Task

(Over)write a file so that it contains a string.



The reverse of Read entire file—for when you want to update or create a file which you would read in its entirety all at once.




without js -- (file i/o)
integer res = write_lines("file.txt",{"line 1\nline 2"})
if res=-1 then crash("error") end if
