write

>>

write content to file at given path


Parameters

write content :any
      file :null :string

Attributes

appendappend to given file
directorycreate directory at path
jsonwrite value as Json
compactproduce compact, non-prettified Json code
binarywrite as binary

Returns

  • :nothing

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