c# 共享状态的文件读写实现代码
代码如下: using System.IO; using System.Text; namespace LucienBao.Commons { public static class FileHelper { public static string ShareRead(string file, Encoding encoding) { string content = string.Empty; FileStream fs = new FileStream(file, FileMode.Open, FileAccess.Read, FileShare.ReadWrite); try { if
用户评论