Creates a read-write Stream on the specified path.
[Visual Basic] Overloads Public Shared Function OpenWrite( _ ByVal path As String _ ) As Stream [C#] public static Stream OpenWrite( string path ); [C++] public: static Stream* OpenWrite( String* path ); [JScript] public static function OpenWrite( path : String ) : Stream;
A reference to a new read-write, unshared Stream object on the specified path.
Exception Type | Condition |
---|---|
SecurityException | The caller does not have the required permission. |
ArgumentException | path is empty or contains only whitespaces. |
NGWS Runtime Security:
FileIOPermissionAccess | Write permission to the path. |
File Class | File Members | System.IO Namespace | File.OpenWrite Overload List