Function

GLib-2.0GLibfreopenSince 2.6

  • A wrapper for the POSIX freopen() function. The freopen() 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 e option is supported in mode on all platforms. See the documentation for GLib.fopen for more details.

    Parameters

    • filename: string

      a pathname in the GLib file name encoding (UTF-8 on Windows)

    • mode: string

      a string describing the mode in which the file should be opened

    • Optionalstream: any

      an existing stream which will be reused, or null

    Returns any

    A FILE* if the file was successfully opened, or null if an error occurred.

    2.6