Open the file in write-only mode.
const FILE_WRITE_ONLY: FileFlags = FileFlags(O_WRONLY);
This flag cannot be combined with FILE_READ_ONLY to open a file for reading and writing. Use FILE_READ_WRITE instead.
open(2) and O_WRONLY therein