Skip to content

CapacitorAdapterFs.read method

CapacitorAdapterFs › read

Unofficial

Read a file as text.

Signature:

read(realPath: string): Promise<string>

Parameters:

Parameter Type Description
realPath string File path to read.

Returns: Promise<string>Text content of the file.