<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`TextFileView`](TextFileView) › [`onLoadFile`](TextFileView/onLoadFile)
## TextFileView.onLoadFile() method
0.10.12
**Signature:**
```typescript
onLoadFile(file: TFile): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>file</code> | [`TFile`](TFile) | |
**Returns:**
`Promise<void>`