Namespace: System.IOAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public FileStream OpenWrite()
Return Value
Type:
FileStreamA write-only unshared
FileStream object for a new or existing file.
Exceptions Exception | Condition |
---|
UnauthorizedAccessException | The path specified when creating an instance of the FileInfo object is read-only or is a directory. |
DirectoryNotFoundException | The path specified when creating an instance of the FileInfo object is invalid, such as being on an unmapped drive. |
See Also