fs.append

fs.append

fs.append

Function

Append the content to the end of the file.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
contentAnyNo''Content to append; arrays and objects write JSON strings.

Return value

TypeDescription
IntReturns the number of bytes written this time.

Example

Notes

  • File is created if it does not exist.