C# 以共享只读方式打开被其它程序占用的文件

iStream = new System.IO.FileStream(filepath, System.IO.FileMode.Open,
                            System.IO.FileAccess.Read, System.IO.FileShare.ReadWrite);
原文地址:https://www.cnblogs.com/nanfei/p/7419362.html