[**simplex-chat**](README.md)

***

[simplex-chat](README.md) / [core](Namespace.core.md) / chatWriteFile

# Function: chatWriteFile()

> **chatWriteFile**(`ctrl`, `path`, `buffer`): `Promise`\<[`CryptoArgs`](core.Interface.CryptoArgs.md)\>

Defined in: [src/core.ts:50](../src/core.ts#L50)

Write buffer to encrypted file

## Parameters

### ctrl

`bigint`

### path

`string`

### buffer

`ArrayBuffer`

## Returns

`Promise`\<[`CryptoArgs`](core.Interface.CryptoArgs.md)\>
