a pathname in the GLib file name encoding (UTF-8 on Windows)
a string describing the mode in which the file should be opened
Optionalstream: anyan existing stream which will be reused, or null
A FILE* if the file was successfully opened, or null if an error occurred.
A wrapper for the POSIX
freopen()function. Thefreopen()function opens a file and associates it with an existing stream.See your C library manual for more details about
freopen().Since GLib 2.86, the
eoption is supported inmodeon all platforms. See the documentation for GLib.fopen for more details.