Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
a local clone.
dmd.root.file
Compiler implementation of the D programming language
http://dlang.org
Authors:
Walter Bright, http://www.digitalmars.com
License:
Source root/file.d
Documentation https://dlang.org/phobos/dmd_root_file.html
- struct
FileBuffer; - Owns a (rmem-managed) file buffer.
- pure nothrow @nogc @safe ubyte[]
extractData(); - Transfers ownership of the buffer to the caller.
- struct
File; -
- struct
ReadResult; -
- pure nothrow @nogc @safe ubyte[]
extractData(); - Transfers ownership of the buffer to the caller.
- static nothrow ReadResult
read(const(char)*name); - Read the full content of a file.
- static nothrow bool
write(const(char)*name, const void[]data);
static nothrow boolwrite(const(char)[]name, const void[]data);
static nothrow boolwrite(const(char)*name, const(void)*data, size_tsize); - Write a file, returning true on success.
- static nothrow void
remove(const(char)*name); - Delete a file.
Copyright © 1999-2019 by the D Language Foundation | Page generated by
Ddoc on Sun Sep 1 19:49:35 2019