write

>>

write content to file at given path


Parameters

write file :null :string
      content :any

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 "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!"

Related