I want to create a huge dummy file say 1~2 GBs in matter of seconds. here is what I\'ve written in C# :
file.writeallbytes(\"filename\",new byte[a huge numbe
I could be wrong but you will probably find that it's impossible to create a file that large that quickly as there will be a bottleneck in the I/O writing process.
However in your code above the Applciation.DoEvents will be slowing things down. Also any repainting of the screenthis.label2.Text = will cause a slight slow down.