FileOpenWrite Method (String, PathFormat) |
[AlphaFS] Opens an existing file or creates a new file for writing.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static FileStream OpenWrite(
string path,
PathFormat pathFormat
)
Public Shared Function OpenWrite (
path As String,
pathFormat As PathFormat
) As FileStream
public:
static FileStream^ OpenWrite(
String^ path,
PathFormat pathFormat
)
static member OpenWrite :
path : string *
pathFormat : PathFormat -> FileStream
Parameters
- path
- Type: SystemString
The file to be opened for writing. - pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Return Value
Type:
FileStreamAn unshared
FileStream object on the specified path with
Write access.
Remarks This method is equivalent to the
FileStream(String, FileMode, FileAccess, FileShare) constructor overload with file mode set to OpenOrCreate, the access set to Write, and the share mode set to None.
See Also