FileShare.Read : FileShare « System.IO « C# / C Sharp by API






FileShare.Read

  
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.IO;
using System.IO.Compression;
using System.Runtime.InteropServices;
using System.Text;

public class MainClass
{
    public static void Main()
    {
        using (FileStream fs3 =File.Open("c:\\test.txt", FileMode.Truncate, FileAccess.ReadWrite, FileShare.Read))
        {

        }

    }
}

   
    
  








Related examples in the same category