Skip to content

Vault.read method

Vault › read

Official

Read a plaintext file that is stored inside the vault, directly from disk. Use this if you intend to modify the file content afterwards. Use Vault.cachedRead otherwise for better performance.

Signature:

read(file: TFile): Promise<string>

Parameters:

Parameter Type Description
file TFile

Returns: Promise<string>

Since: 0.9.7