Skip to content

Instantly share code, notes, and snippets.

@SeriaWei
Created January 17, 2017 03:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SeriaWei/4d347134f00891aada64610f9b2b1dce to your computer and use it in GitHub Desktop.
Save SeriaWei/4d347134f00891aada64610f9b2b1dce to your computer and use it in GitHub Desktop.
C# Creating a Huge Dummy File
FileStream fs = new FileStream(@"c:\tmp\huge_dummy_file", FileMode.CreateNew);
fs.Seek(2048L * 1024 * 1024, SeekOrigin.Begin);
fs.WriteByte(0);
fs.Close();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment