write content to file at given path
Parameters
write content :any
file :null :string
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 "Hello world!" "somefile.txt"
copy
; we can also write any type of data as JSON
write.json myData "data.json"
copy
; append to an existing file
write.append "Yes, Hello again!" "somefile.txt"
Related