Adds hyperlink to system module to explain TFileMode type.

This commit is contained in:
Grzegorz Adam Hankiewicz
2012-12-11 22:24:07 +01:00
parent 545a7577e5
commit afff026dbd

View File

@@ -263,7 +263,8 @@ proc newFileStream*(f: TFile): PFileStream =
proc newFileStream*(filename: string, mode: TFileMode): PFileStream =
## 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
if Open(f, filename, mode): result = newFileStream(f)