From 1edd38b96e9c1b139c58995397d7cfb4bcd3d1ee Mon Sep 17 00:00:00 2001 From: t-wiser Date: Mon, 31 Aug 2020 18:48:39 -0400 Subject: [PATCH] Add append mode. (#1847) --- include/fmt/os.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fmt/os.h b/include/fmt/os.h index 7796260a..fec540d8 100644 --- a/include/fmt/os.h +++ b/include/fmt/os.h @@ -278,7 +278,8 @@ class file { RDONLY = FMT_POSIX(O_RDONLY), // Open for reading only. WRONLY = FMT_POSIX(O_WRONLY), // Open for writing only. RDWR = FMT_POSIX(O_RDWR), // Open for reading and writing. - CREATE = FMT_POSIX(O_CREAT) // Create if the file doesn't exist. + CREATE = FMT_POSIX(O_CREAT), // Create if the file doesn't exist. + APPEND = FMT_POSIX(O_APPEND) // Open in append mode. }; // Constructs a file object which doesn't represent any file.