From: Kevin Day Date: Sat, 10 Mar 2012 20:56:38 +0000 (-0600) Subject: Update: add all types of file open modes X-Git-Tag: 0.3.0~102 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=9444a9ed74e74f09da9b0aa075a17c850ddcec39;p=fll 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. --- 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_