Write a file
amiga_write_fileWrites one file to an Amiga path, replacing any existing file, using Latin-1 text or base64 binary data while refusing system directories like SYS: and C: to protect the boot volume.
Instructions
Create or replace one file on the Amiga. Give the contents either as 'text' (encoded as Latin-1, line ends become LF) or as 'base64' for binary data; not both. An existing file of that name is replaced. The parent directory must exist. System places (SYS:, C:, S:, LIBS:, DEVS:, L:, ...) are refused so a mistake cannot break the boot. Returns a line with the bytes written.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | the full Amiga path, e.g. 'RAM:test.txt' | |
| text | No | the contents as text | |
| base64 | No | the contents as base64, for binary files |