Csharp/C Sharp by API/System.IO/FileShare
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.IO;
using System.IO.rupression;
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))
{
}
}
}