Skip to content

CapacitorAdapterFs.write method

CapacitorAdapterFs › write

Unofficial

Write text data to a file.

Signature:

write(realPath: string, data: string): Promise<void>

Parameters:

Parameter Type Description
realPath string File path to write to.
data string Text data to write.

Returns: Promise<void>A promise that resolves when the file is written.