> For the complete documentation index, see [llms.txt](https://xeavin.gitbook.io/ff12-lua-loader/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xeavin.gitbook.io/ff12-lua-loader/memory-save/functions/write-array.md).

# Write Array

### Signature

```csharp
bool writeArray(u64 address, table bytes)
```

### Description

Writes an array of bytes to a specified memory address.

Returns whether the operation was successful (`true`) or not (`false`).

### Arguments

#### Address

The memory address where the bytes will be written to.

#### Bytes

A table of bytes that will be written to the specified address.

### Notes

{% hint style="info" %}
If `save.writeArray` is used and the memory address that is written to is outside the save area, it will wrap around to the beginning.
{% endhint %}
