Advertisement
Guest User

Untitled

a guest
Feb 1st, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. using System;
  2. using System.IO;
  3. using System.Threading.Tasks;
  4.  
  5. namespace IOTest
  6. {
  7. class Program
  8. {
  9. static void Main(string[] args)
  10. {
  11. for (int i = 0; i < 1000; i++)
  12. {
  13. Task.Run(() =>
  14. {
  15. using (FileStream s = new FileStream(@"D:\aaa\a" + i, FileMode.Create))
  16. {
  17. s.Write(new byte[] {}, 0, 0);
  18. }
  19. });
  20. }
  21. Console.ReadKey();
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement