Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added missing filemode docs #19346

Merged
merged 1 commit into from
Jan 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/system/io.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand All @@ -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
Expand Down