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

# File

> Write output to a local file

## Schema

<ParamField path="type" type="string" required>
  This should be set to `file`
</ParamField>

<ParamField path="path" type="string" required>
  Filepath to sink data
</ParamField>

<ParamField path="encoding" type="object">
  Controls how Tangent serializes records emitted by this source. See [Encoding](/configuration/sinks/encoding).
</ParamField>

<ParamField path="compression" type="object">
  Controls how Tangent compresses payloads emitted by this source. See [Compression](/configuration/sinks/compression).
</ParamField>

***

## Example

```yaml theme={null}
sinks:
  local_file:
    type: file
    path: /tmp/out.ndjson
```
