> ## Documentation Index
> Fetch the complete documentation index at: https://docs.simular.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# readFile

```typescript
readFile(path: string): string
```

Reads a file and returns its trimmed contents.

If the path is relative, it is resolved against the default cache
location.

## Parameters

<ResponseField name={"path"} type={"string"} required />

## Returns

`string`
