Opens a file on the specified path, with the specified mode and access.
[Visual Basic] Overloads Public Function Open( _ ByVal path As String, _ ByVal mode As FileMode, _ ByVal access As FileAccess _ ) As Stream [C#] public Stream Open( string path, FileMode mode, FileAccess access ); [C++] public: Stream* Open( String* path, FileMode mode, FileAccess access ); [JScript] public function Open( path : String, mode : FileMode, access : FileAccess ) : Stream;
An unshared file on the specified path, with the specified mode and access.
Exception Type | Condition |
---|---|
SecurityException | The caller does not have the required permission. |
ArgumentException | path is empty or contains only whitespaces. |
NGWS Runtime Security:
FileIOPermissionAccess | Read permission to the path. |
File Class | File Members | System.IO Namespace | File.Open Overload List