I mean to use fdopen
fdopen
FILE *fdopen(int fd, const char *mode);
In man pages, it is stated that \"The mode of the stream (one of
From fopen you can check how they correlate with w+ r etc...
w+
r