📜  c# 写入时读取文件 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:24.537000             🧑  作者: Mango

代码示例1
using (var fs = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
using (var sr = new StreamReader(fs, Encoding.Default)) {
    // read the stream
    //...
}