Vault.modify() method
Modify the contents of a plaintext file.
Signature:
modify(file: TFile, data: string, options?: DataWriteOptions): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
file | TFile | The file |
data | string | The new file content |
options | DataWriteOptions | (Optional) (Optional) |
Returns:
Promise<void>