Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.IO;
- using System.Threading.Tasks;
- namespace IOTest
- {
- class Program
- {
- static void Main(string[] args)
- {
- for (int i = 0; i < 1000; i++)
- {
- Task.Run(() =>
- {
- using (FileStream s = new FileStream(@"D:\aaa\a" + i, FileMode.Create))
- {
- s.Write(new byte[] {}, 0, 0);
- }
- });
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement