📅  最后修改于: 2022-03-11 14:48:53.033000             🧑  作者: Mango
代码示例1
using (var fs = new FileStream(fileName, FileMode.Create, FileAccess.Write, FileShare.None))
{
fs.SetLength(sizeInMB * 1024 * 1024);
}