Created
January 17, 2017 03:54
-
-
Save SeriaWei/4d347134f00891aada64610f9b2b1dce to your computer and use it in GitHub Desktop.
C# Creating a Huge Dummy File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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