bBox_FileWrite( data; path;  {; append; unzip} )

Parameters:
   data: reference to a container or text value
   path: POSIX file path

Result:
   number of bytes written (negative on error)

Error:
   bBox_LastError ("posix")

Script Step:
   bBox File Write [ Data; POSIX Path ]

––––––––––

First appeared in: 0.63

Examples in demo file: 1

Compatibility:   Client, macOS, Server, Ubuntu, WebDirect, WPE

––––––––––

Write out the contents of the container or text to a file. If the optional append flag is true, add the contents to the end of the current file.

Be sure that any needed folders already exist. For text, the number of bytes written is often the same as the number of characters in text, but any non-ASCII characters may require more than one byte per character.

The file path is a literal value; do not escape characters or enclose in quotes.

––––––––––
bBox Functions
bBox Wiki