| FileOpen Method |
Opens a file at the supplied path location.
Namespace:
Galactic.FileSystem
Assembly:
Galactic.FileSystem (in Galactic.FileSystem.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax public static FileStream Open(
string path,
bool readOnly = false
)
Public Shared Function Open (
path As String,
Optional readOnly As Boolean = false
) As FileStream
public:
static FileStream^ Open(
String^ path,
bool readOnly = false
)
static member Open :
path : string *
?readOnly : bool
(* Defaults:
let _readOnly = defaultArg readOnly false
*)
-> FileStream
Parameters
- path
- Type: SystemString
The path to the location to open the file at. - readOnly (Optional)
- Type: SystemBoolean
Whether to open the file as read-only.
Return Value
Type:
FileStreamA FileStream of the file created or null if an error occurred.
See Also