Read a file
amiga_read_fileReads a file from an Amiga path and returns its contents, decoding text as Latin-1 or returning binary data as base64.
Instructions
Copy one file from the Amiga and return its contents. Text comes back as text (decoded as Latin-1, the Amiga's character set); a file with a zero byte in its first 4 KB is treated as binary and comes back as 'binary file, N bytes, base64:' and the data. Fails if the path does not exist or is a directory (use amiga_ls). Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | the full Amiga path, e.g. 'S:Startup-Sequence' |