Skip to content

DataAdapter.append method

DataAdapter › append

Official

Add text to the end of a plaintext file.

Signature:

append(normalizedPath: string, data: string, options?: DataWriteOptions | undefined): Promise<void>

Parameters:

ParameterTypeDescription
normalizedPathstringpath to file, use {@link normalizePath} to normalize beforehand.
datastringthe text.
options?DataWriteOptions | undefinedwrite options.

Returns: Promise<void>