Counting number of line in a file
来源:互联网 发布:域名让googlebaidu收到 编辑:程序博客网 时间:2024/06/05 07:51
private long CountLine(string fileName)
{
using(StreamReader sr = new StreamReader(
new FileStream(fileName,FileMode.Open,
FileAccess.Read, FileShare.ReadWrite)))
{
return Regex.Matches(sr.ReadToEnd(), "/n").Count;
}
}
- Counting number of line in a file
- 统计某列出现次数 Counting occurrences in first column of a file
- [LeetCode]Maximum number of points on a straight line in 2d plane
- Read the Last line in a file
- Counting-the-number-of-set-bits-in-an-integer
- The number of method references in a .dex file cannot exceed 64K
- The number of method references in a .dex file cannot exceed 64K. Error 解决方案
- Android开发 Error:The number of method references in a .dex file cannot exceed 64K.
- Error:The number of method references in a .dex file cannot exceed 64K......
- 解决 The number of method references in a .dex file cannot exceed 64K
- Error:The number of method references in a .dex file cannot exceed 64K. 解决方案
- The number of method references in a .dex file cannot exceed 64K.
- Error:The number of method references in a .dex file cannot exceed 64K.
- The number of method references in a .dex file cannot exceed 64K.
- Error:The number of method references in a .dex file cannot exceed 64K 问题解决
- Error:The number of method references in a .dex file cannot exceed 64K.
- How to remove a line from a file in java?
- How to Take Ownership of a File/Folder Using Command-Line in Windows 7 or newer version System
- tomcat作服务时出现的" 重叠I/O操作在进行中"
- softice怎样调试驱动程序请教
- 开山笔记
- 三国演义中最具个性的名人名言
- 纯Ajax架构的网站 保存qq聊天记录 制成精美电子书
- Counting number of line in a file
- C# let textbox only accept numeric input
- 航行
- Linux - Wine上运行MS Office 2007教程
- C++字符串封装类
- _beginthread, _beginthreadex, CreateThread, AfxBeginThread
- CListCtrl详解
- how to compile beginthreadex
- Do not use shared variable to check thread status