Reads the contents of the file at the path as a string. Returns undefined
value if the file does not exist or could not be read. Paths should begin with a /
and be relative to the root directory of your Box.com account.
Write the contents of the file at the path. Returns true if successful, false if the file could not be written successfully. This will override existing files!
Paths should begin with a /
and be relative to the root directory of your Box
Text to place in the file.
Optional
overwrite: booleanIf false, an existing file will not be overwritten.
Static
create
Box objects can be used to work with files in a Box.com account.
Example