---
title: "close"
source: "https://browserpod.io/docs/reference/TextFile/close"
---

# close

Close a TextFile handle in a BrowserPod Pod to flush pending writes and release the file once you have finished reading or writing.

```ts
class TextFile {
  async close(): Promise<void>;
}
```

## Parameters

`close` does not have any parameters.

## Returns

`close` returns a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) which is resolved when the operation has succeeded.
