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