- :nothing
write
>>
write content to file at given path
Parameters
write file :null :string content :any
Attributes
append | append to given file | |
directory | create directory at path | |
json | write value as Json | |
compact | produce compact, non-prettified Json code | |
binary | write as binary |
Returns
Examples
copy; write some string data to given file path write "somefile.txt" "Hello world!"
copy; we can also write any type of data as JSON write.json "data.json" myData
copy; append to an existing file write.append "somefile.txt" "Yes, Hello again!"