<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`Vault`](Vault) › [`modify`](Vault/modify) ## Vault.modify() method Modify the contents of a plaintext file. **Signature:** ```typescript modify(file: TFile, data: string, options?: DataWriteOptions): Promise<void>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>file</code> | [`TFile`](TFile) | The file | | <code>data</code> | <code>string</code> | The new file content | | <code>options</code> | [`DataWriteOptions`](DataWriteOptions) | <p>_(Optional)_ (Optional)</p><p> 0.9.7</p> | **Returns:** `Promise<void>`