cpp/io/c/fopen

Opens a file indicated by and returns a file stream associated with that file. is used to determine the file access mode.

Return value
If successful, returns a pointer to the object that controls the opened file stream, with both eof and error bits cleared. The stream is fully buffered unless refers to an interactive device.

On error, returns a null pointer. POSIX requires that errno is set in this case.