vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Enum FileMode

Specifies how a file is manipulated on disk.

enum FileMode : FileOpenMode { ... }

Enum members

NameDescription
append The file is opened for appending data to it and created if it does not exist.
create Create the file and open read/write, fails if already existing

Note that eventcore 0.9.24 or up is required, older versions will fall back to FileMode.read.

createTrunc The file is truncated if it exists or created otherwise and then opened for read-write access.
read The file is opened read-only.
readWrite The file is opened for read-write random access.
Authors

Sönke Ludwig

Copyright

© 2012-2021 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.