From 9444a9ed74e74f09da9b0aa075a17c850ddcec39 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 10 Mar 2012 14:56:38 -0600 Subject: [PATCH] Update: add all types of file open modes This also changes f_file_read_write to not create the file if it does not exist. To create the file if it does not exist, use f_file_read_write_create. --- level_0/f_file/c/file.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/level_0/f_file/c/file.h b/level_0/f_file/c/file.h index 2c7d87d..bfcb2d0 100644 --- a/level_0/f_file/c/file.h +++ b/level_0/f_file/c/file.h @@ -37,9 +37,11 @@ extern "C"{ #endif // _di_f_file_types_ #ifndef _di_f_file_oldstyle_modes_ - #define f_file_read_only "r" - #define f_file_write_only "w" - #define f_file_read_write "rw" + #define f_file_read_only "r" + #define f_file_read_write "r+" + #define f_file_read_write_create "rw" + #define f_file_read_write_append "a+" + #define f_file_write_create "w" #endif // _di_f_file_oldstyle_modes_ #ifndef _di_f_file_seeks_ -- 1.8.3.1