Adds hyperlink to system module to explain TFileMode type.
This commit is contained in:
parent
545a7577e5
commit
afff026dbd
1 changed files with 2 additions and 1 deletions
|
|
@ -263,7 +263,8 @@ proc newFileStream*(f: TFile): PFileStream =
|
||||||
|
|
||||||
proc newFileStream*(filename: string, mode: TFileMode): PFileStream =
|
proc newFileStream*(filename: string, mode: TFileMode): PFileStream =
|
||||||
## creates a new stream from the file named `filename` with the mode `mode`.
|
## creates a new stream from the file named `filename` with the mode `mode`.
|
||||||
## If the file cannot be opened, nil is returned.
|
## If the file cannot be opened, nil is returned. See the `system
|
||||||
|
## <system.html>`_ module for a list of available TFileMode enums.
|
||||||
var f: TFile
|
var f: TFile
|
||||||
if Open(f, filename, mode): result = newFileStream(f)
|
if Open(f, filename, mode): result = newFileStream(f)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue