DOS

= Files and directories =

Open a file
Where mode is one of the following:

Writing and reading
There are two sets of functions to read and write files: unbuffered and buffered. Buffered I/O is efficient for small reads and writes.

Unbuffered read/write:

Buffered read/write:

You must use FFlush when switching from buffered I/O to unbuffered or vice versa:

Example
= Scanning directories =

= Notifications =

With StartNotify and EndNotify you can start and stop getting notifications when files have changed. You can ask dos.library to notify you with a signal or a message. Please note that not all file systems support notifications.