Jump to content

ManagedMassStorage: Difference between revisions

From Advanced Computers Wiki
Created page with "The ManagedMassStorageUD component is what backs Hard Disk Drives and Floppy Disks. This virtual component offers the following properties: {| class="wikitable" |+ PunchcardReaderUD component properties |- ! Name !! Type !! Read/Write !! Description |- | <code>totalCapacityBytes</code> || <code>integer</code> || READ || Total capacity of this drive (capacity is currently not limited, so this is not meaningful currently) |} {| class="w..."
 
No edit summary
Line 11: Line 11:
|+ PunchcardReaderUD component methods
|+ PunchcardReaderUD component methods
|-
|-
! Name !! Type !! Description
! Name !! Returns !! Description
|-
|-
| style="white-space: nowrap;" | <code>:open(string:filePath[, string:mode=r])</code>|| <code>filehandle</code>|| style="padding:0;"|
| style="white-space: nowrap;" | <code>:open(string:filePath[, string:mode=r])</code>|| <code>filehandle</code>|| style="padding:0;"|

Revision as of 01:04, 2 August 2026

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.