File

Encapsulates a FILE*.

Constructors

this
this(string filename, string mode)

Constructor

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
eof
bool eof()
Undocumented in source. Be warned that the author may not have intended to support it.
error
bool error()
Undocumented in source. Be warned that the author may not have intended to support it.
flush
bool flush()
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length()

It's broken at the moment extern(C) public int dprintf(string format, ...) nothrow @nogc { va_list args; va_start(args, format); return vfprintf(payload.fd, *Stringz(format), args); }

opAssign
typeof(this) opAssign(typeof(this) rhs)

Ref. counting during structure assignation

opBinary
typeof(this) opBinary(T[] pos)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
typeof(this) opBinary(T b)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
typeof(this) opBinary(string str)
Undocumented in source. Be warned that the author may not have intended to support it.
opUnary
FILE* opUnary()

Returns underlying FILE*

read
size_t read(void* ptr, size_t size, size_t nmemb)
Undocumented in source. Be warned that the author may not have intended to support it.
read
size_t read(T[] buf)

Returns underlying FILE*

read
size_t read(T b)
Undocumented in source. Be warned that the author may not have intended to support it.
reopen
void reopen(string mode)

Reuses stream to change its access mode.

seek
bool seek(size_t offset, int origin)
Undocumented in source. Be warned that the author may not have intended to support it.
stream
FILE* stream()

Returns underlying FILE*

write
size_t write(void* ptr, size_t size, size_t nmemb)
size_t write(T[] buf)
write
size_t write(T b)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

seekCur
enum seekCur;

Offset is relative to the current position

seekEnd
enum seekEnd;

Offset is relative to the end

seekSet
enum seekSet;

Offset is relative to the beginning

Static functions

tmpfile
typeof(this) tmpfile()

Creates a temporary file without a name

Meta