Why: Files#
-
class File#
File I/O wrapper providing RAII-style file handle management.
Public Functions
Public Static Functions
Public Static Attributes
-
static int ReadOnly = O_RDONLY#
Open file in read-only mode.
-
static int WriteOnly = O_WRONLY#
Open file in write-only mode.
-
static int Append = O_APPEND#
Append to end of file on each write.
-
static int Create = O_CREAT#
Create file if it doesn’t exist.
-
static int Truncate = O_TRUNC#
Truncate file to zero length if it exists.
-
static int ReadOnly = O_RDONLY#