> ## Documentation Index
> Fetch the complete documentation index at: https://chart-spec.enchor.us/llms.txt
> Use this file to discover all available pages before exploring further.

# ChartFileTokens

A `.chart` file as read, kept whole so an unedited file is written back byte for byte.

## Properties

| Property | Modifier | Type | Description |
| - | - | - | - |
|  `bytes` | `readonly` | `Uint8Array` | - |
|  `encoding` | `readonly` | [`ChartEncoding`](https://chart-spec.enchor.us/scan-chart/api/index/type-aliases/ChartEncoding) | - |
|  `sections` | `readonly` | readonly [`ChartSectionToken`](https://chart-spec.enchor.us/scan-chart/api/index/interfaces/ChartSectionToken)\[] | Every section in file order, duplicates included. |
|  `structureError` | `readonly` | `string` \| `null` | Why the file isn't a valid `.chart`, found while finding its sections; reported when it is classified. |
|  `text` | `readonly` | `string` | The decoded text, without the byte-order mark. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.