lib: fix readFile flag option
Fixes #35290 (closed)
I have not added new tests since I'm not quite understand yet how to do that, but maybe it is worth to do, I'll try later.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines