Function: writeText()
Documentation / @wtf/platform-fs / files / writeText
function writeText( platform, path, data): Promise<FileSystemFileHandle>;Defined in: packages/platform-fs/src/files.ts:114
Writes data to the file of path, whole, through its writable, which takes the file’s place
as it closes: made where it is not there, with each folder on the way. A failure leaves the
file as it was.
Parameters
| Parameter | Type |
|---|---|
platform | FilesPlatform |
path | string |
data | string | Uint8Array<ArrayBufferLike> |
Returns
Promise<FileSystemFileHandle>
