std.stream.FileStream.Open - nitrologic/monkey2 GitHub Wiki
std::std.stream.std.stream.FileStream.Open
Function Open:std:std.stream.FileStream( path:monkey:monkey.types.String,mode:monkey:monkey.types.String )
Opens a file and returns a new filestream.
When opening a file using "r" or "rw", the file must already exist or the function will fail and null will be returned.
When opening a file using "w", any existing file at the same path will be overwritten.
| Parameters | |
|---|---|
path |
path The path of the file to open. |
mode |
mode The mode to open the file in: "r", "w" or "rw". |