Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

large blank file C#

using (var fs = new FileStream(fileName, FileMode.Create, FileAccess.Write, FileShare.None))
{
    fs.SetLength(sizeInMB * 1024 * 1024);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #large #blank #file
ADD COMMENT
Topic
Name
1+8 =