Пример #1
0
        static void Main(string[] args)
        {
            Program1 p = new Program1();

            p.fileStream = new FileStream(@"d:\words.txt", FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None);
            p.fileStream.SafeFileHandle.Dispose();
            ReadKey();
        }
Пример #2
0
 static void Main(string[] args)
 {
     using (var p = new Program1());
     ReadKey();
 }