Answers for "large blank file C#"

C#
0

large blank file C#

using (var fs = new FileStream(fileName, FileMode.Create, FileAccess.Write, FileShare.None))
{
    fs.SetLength(sizeInMB * 1024 * 1024);
}
Posted by: Guest on April-22-2021

C# Answers by Framework

Browse Popular Code Answers by Language