FileManager.insertIntoFile method
FileManager › insertIntoFile
Unofficial
Insert text into a file.Signature:
insertIntoFile(file: TFile, text: string, position?: "append" | "prepend" | undefined): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
| file | TFile | The file to insert into. |
| text | string | The text to insert. |
| position? | "append" | "prepend" | undefined | Where to insert the text. |
Returns: Promise<void> — A promise that resolves when the text is inserted.