Warning: This module is considered out-dated and not up to Phobos' current standards. It will remain until we have a suitable replacement, but be aware that it will not remain long term.
The std. cstream module bridges std.c.stdio (or std.stdio) and std.stream. Both std.c.stdio and std.stream are publicly imported by std. cstream.
A Stream wrapper for a C file of type FILE*.
Create the stream wrapper for the given C file.
FILE* cfile | a valid C FILE pointer to wrap. |
FileMode mode | a bitwise combination of FileMode.In for a readable file and FileMode.Out for a writeable file. |
bool seekable | indicates if the stream should be seekable. |
Overrides of the Stream methods to call the underlying FILE* C functions.
CFile wrapper of std.c.stdio.stdin (not seekable).
CFile wrapper of std.c.stdio.stdout (not seekable).
CFile wrapper of std.c.stdio.stderr (not seekable).