UtilFileCreateDummyFile(String, Int64) Method
Creates a dummy (zero-byte filled) file of the specified filesize.
Namespace: DevCase.Core.IO.FileSystemAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void CreateDummyFile(
string filepath,
long filesize
)
Public Shared Sub CreateDummyFile (
filepath As String,
filesize As Long
)
Dim filepath As String
Dim filesize As Long
UtilFile.CreateDummyFile(filepath, filesize)
public:
static void CreateDummyFile(
String^ filepath,
long long filesize
)
static member CreateDummyFile :
filepath : string *
filesize : int64 -> unit
No code example is currently available or this language may not be supported.
Parameters
- filepath String
-
The target filepath.
- filesize Int64
-
The filesize, in Bytes.
This is a code example.
No code example is currently available or this language may not be supported.
CreateDummyFile("C:\DummyFile.tmp", CLng(Math.Pow(1024L, 3L))) ' 1 GB filesize.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
IOException
|
Target file already exists.
|