九溪

溪水润知林,滴露启慧心

用户工具

站点工具


wiki:csharp:read-file-lastline

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

后一修订版
前一修订版
wiki:csharp:read-file-lastline [2019/10/24 22:34] – 创建 colinwiki:csharp:read-file-lastline [2023/01/03 15:25] (当前版本) – 外部编辑 127.0.0.1
行 73: 行 73:
     // 读取首行     // 读取首行
     string line = sr.ReadLine();     string line = sr.ReadLine();
-    ...+    //...
  
     sr.Close();     sr.Close();
行 79: 行 79:
 } }
 </code> </code>
 +
 +参考:
 +  - [[https://blog.csdn.net/cxu123321/article/details/94591807|C# 高效提取txt文档最后一行数据]]
 +  - [[https://codeday.me/bug/20190328/845105.html|c# – 如何有效地只读取文本文件的最后一行]]
 +  - [[https://stackoverflow.com/questions/452902/how-to-read-a-text-file-reversely-with-iterator-in-c-sharp|How to read a text file reversely with iterator in C#]]
wiki/csharp/read-file-lastline.1571927652.txt.gz · 最后更改: 2023/01/03 15:24 (外部编辑)