Jump to content

ManagedMassStorage

From Advanced Computers Wiki
Revision as of 01:04, 2 August 2026 by GHXX (talk | contribs)

The ManagedMassStorageUD component is what backs Hard Disk Drives and Floppy Disks. This virtual component offers the following properties:

PunchcardReaderUD component properties
Name Type Read/Write Description
totalCapacityBytes integer READ Total capacity of this drive (capacity is currently not limited, so this is not meaningful currently)
PunchcardReaderUD component methods
Name Returns Description
:open(string:filePath[, string:mode=r]) filehandle
mode Attempted action
r Open an existing file in read-only mode.
r+ Open an existing file in read-write mode.
w Open a potentially existent file, erase the contents and open it in write-only mode.
w+ Same as w but also allows reading.
a Open or create a new file, do not erase the contents, allow only appending.