vibe.d beta banner
get vibe.d

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

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

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.

Sönke Ludwig


© 2012-2021 Sönke Ludwig


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