DataAdapter โ€บ write

DataAdapter.write() method

Write to a plaintext file. If the file exists its content will be overwritten, otherwise the file will be created.

Signature:

write(normalizedPath: string, data: string, options?: DataWriteOptions): Promise<void>;

Parameters

ParameterTypeDescription
normalizedPathstringpath to file, use normalizePath() to normalize beforehand.
datastringnew file content
optionsDataWriteOptions(Optional) (Optional)

Returns:

Promise<void>