> For the complete documentation index, see [llms.txt](https://refresh-cx.gitbook.io/refresh.cx-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://refresh-cx.gitbook.io/refresh.cx-docs/memory/read-bytes.md).

# Read Bytes

Reads up to 1 MB as a string. Returns nil on failure.

## **Syntax**

```lua
refresh.Memory.ReadBytes(address, length) -> String
```

## **Return**

{% hint style="success" %}
String or nil
{% endhint %}

## Usage Example

```lua
local bytes = refresh.Memory.ReadBytes(0x140000000, 16)
```
