WARNING: The [sjs-3] engine was deprecated, use [sjs-4] instead. See sjs-4: body.

File.prototype.body()

Get/set a file’s body.

Syntax

// Get file.body() string // Set file.body(body string) File

Parameters

body string

The new data to be stored in the file’s body.

Description

Get/set a file’s body, which is the main storage area of a file. Filesystem links are followed.

Examples

Get, set.

Subscribe to our newsletter!