Opens a file on the specified path and in the specified mode.
[Visual Basic] Overloads Public Shared Function Open( _ ByVal path As String, _ ByVal mode As FileMode _ ) As Stream [C#] public static Stream Open( string path, FileMode mode ); [C++] public: static Stream* Open( String* path, FileMode mode ); [JScript] public static function Open( path : String, mode : FileMode ) : Stream;
A file opened in the specified mode and path, with read/write access and unshared.
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