[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [Fs](https://evolu.dev/docs/api-reference/common/Fs) › FsReadFile

Defined in: [packages/common/src/Fs.ts:230](https://github.com/evoluhq/evolu/blob/dd96d79f1dbe9a49fa12ce8e0aa7d3d0177795ca/packages/common/src/Fs.ts#L230)

Reads bytes by default, or text when an encoding is specified.

## Call Signature

```ts
FsReadFile(path: FsPath): Task<Uint8Array<ArrayBufferLike>, FsError>;
```

Defined in: [packages/common/src/Fs.ts:231](https://github.com/evoluhq/evolu/blob/dd96d79f1dbe9a49fa12ce8e0aa7d3d0177795ca/packages/common/src/Fs.ts#L231)

Reads bytes by default, or text when an encoding is specified.

## Call Signature

```ts
FsReadFile(path: FsPath, encoding:
  | FsEncoding
  | {
  encoding: FsEncoding;
}): Task<string, FsError>;
```

Defined in: [packages/common/src/Fs.ts:232](https://github.com/evoluhq/evolu/blob/dd96d79f1dbe9a49fa12ce8e0aa7d3d0177795ca/packages/common/src/Fs.ts#L232)

Reads bytes by default, or text when an encoding is specified.