FilesTryCreateWithPath Method
Tries to create a file of the specified path along with possibly non-existing parent directories.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.0.0
public static FileStream? TryCreateWithPath(
string path,
bool overwriteIfExists = true
)
Public Shared Function TryCreateWithPath (
path As String,
Optional overwriteIfExists As Boolean = true
) As FileStream
public:
static FileStream^ TryCreateWithPath(
String^ path,
bool overwriteIfExists = true
)
static member TryCreateWithPath :
path : string *
?overwriteIfExists : bool
(* Defaults:
let _overwriteIfExists = defaultArg overwriteIfExists true
*)
-> FileStream
- path String
- The name of the file to be created with path.
- overwriteIfExists Boolean (Optional)
- to allow an already existing file to be overwritten; otherwise, .
FileStreamA
FileStream instance if the file could be created or overwritten; otherwise,
.