FileUtils.freopen

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 2.6

class FileUtils
static
FILE*
freopen
(
string filename
,
string mode
,
FILE* stream
)

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

stream FILE*

an existing stream which will be reused, or NULL. [allow-none]

Return Value

Type: FILE*

A FILE pointer if the file was successfully opened, or NULL if an error occurred.

Meta