ToyGine2 26.2.0
Game Engine for retro consoles
Loading...
Searching...
No Matches
toy::filesystem Namespace Reference

Filesystem types and utilities: file open modes, paths, and related APIs. More...

Enumerations

enum class  OpenFileMode {
  Read , WriteEmpty , WriteAppend , ReadWrite ,
  ReadWriteEmpty , ReadWriteAppend
}
 Mode in which a file is opened: read, write, append, or read-write. More...

Detailed Description

Filesystem types and utilities: file open modes, paths, and related APIs.

Enumeration Type Documentation

◆ OpenFileMode

enum class toy::filesystem::OpenFileMode
strong

Mode in which a file is opened: read, write, append, or read-write.

Each value maps to platform-specific flags (e.g. O_RDONLY, O_WRONLY, O_APPEND). WriteEmpty and ReadWriteEmpty typically create or truncate the file; WriteAppend and ReadWriteAppend append; Read is read-only.

Enumerator
Read 

Open for reading only. File must exist.

WriteEmpty 

Create or truncate and open for writing only.

WriteAppend 

Open for writing at end of file; create if not present.

ReadWrite 

Open for reading and writing. File must exist.

ReadWriteEmpty 

Create or truncate and open for reading and writing.

ReadWriteAppend 

Open for reading and writing at end of file; create if not present.