summary refs log tree commit diff stats
path: root/lib/system/io.nim
diff options
context:
space:
mode:
authorSmarcy <marc2@uni-bremen.de>2022-01-09 14:02:08 +0100
committerGitHub <noreply@github.com>2022-01-09 14:02:08 +0100
commitb098546da051ed026e85a9f398e74c396c79a8ad (patch)
tree5a11e23a4b05fe0378f53bdbab964bdeb0da540c /lib/system/io.nim
parentae92eac06031ed57a755c01efdbb9cc5b72e5dbf (diff)
downloadNim-b098546da051ed026e85a9f398e74c396c79a8ad.tar.gz
added filemode docs (#19346)
Diffstat (limited to 'lib/system/io.nim')
-rw-r--r--lib/system/io.nim5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/system/io.nim b/lib/system/io.nim
index 661d1a9ba..04a43328d 100644
--- a/lib/system/io.nim
+++ b/lib/system/io.nim
@@ -22,6 +22,8 @@ type
 
   FileMode* = enum       ## The file mode when opening a file.
     fmRead,              ## Open the file for read access only.
+                         ## If the file does not exist, it will not
+                         ## be created.
     fmWrite,             ## Open the file for write access only.
                          ## If the file does not exist, it will be
                          ## created. Existing files will be cleared!
@@ -32,7 +34,8 @@ type
                          ## If the file does not exist, it will not be
                          ## created. The existing file will not be cleared.
     fmAppend             ## Open the file for writing only; append data
-                         ## at the end.
+                         ## at the end. If the file does not exist, it
+                         ## will be created.
 
   FileHandle* = cint ## type that represents an OS file handle; this is
                       ## useful for low-level file access