Constructs a ByteStream for accessing the file named filename.
Arguments filename and mode are similar to the arguments of the well
known stdio function fopen. In addition a filename of - will be
interpreted as the standard output or the standard input according to
mode. This constructor will open a stdio file and construct a
ByteStream object accessing this file. Destroying the ByteStream object
will flush and close the associated stdio file. Exception
GException is thrown with a plain text error message if the stdio
file cannot be opened.
StdioByteStream(FILE *f, const char *mode="rb", bool closeme=false)
Constructs a ByteStream for accessing the stdio file f.
Argument mode indicates the type of the stdio file, as in the
well known stdio function fopen. Destroying the ByteStream
object will not close the stdio file f unless closeme is true.