统计代码行数源码
来源:互联网 发布:ubuntu输入法切换 编辑:程序博客网 时间:2024/04/28 06:55
public static long LineCount(string source)
......{
string text=source;
long numOfLines=0;
if (source != null)
......{
FileStream FS = new FileStream(source, FileMode.Open,
FileAccess.Read, FileShare.Read);
StreamReader SR = new StreamReader(FS);
while (text != null)
......{
text = SR.ReadLine();
if (text != null)
......{
++numOfLines;
}
}
SR.Close();
FS.Close();
return numOfLines;
}
else
......{
return 0;
}
}
......{
string text=source;
long numOfLines=0;
if (source != null)
......{
FileStream FS = new FileStream(source, FileMode.Open,
FileAccess.Read, FileShare.Read);
StreamReader SR = new StreamReader(FS);
while (text != null)
......{
text = SR.ReadLine();
if (text != null)
......{
++numOfLines;
}
}
SR.Close();
FS.Close();
return numOfLines;
}
else
......{
return 0;
}
}
- 统计代码行数源码
- 统计代码行数源码
- iOS源码统计代码行数
- 统计项目源码行数的Java代码
- 统计代码行数代码
- 统计源码行数命令:
- 项目管理之源码目录下的代码行数统计
- 代码行数统计类
- 代码行数统计器
- 统计代码行数
- 代码行数统计工具
- 代码行数统计器
- 统计 代码行数
- vim统计代码行数
- VC 统计 代码行数
- eclipse统计代码行数
- Eclipse统计代码行数
- eclipse统计代码行数
- 一年又一年
- PHP:路在何方?
- SSO
- Hibernate笔记
- Portal
- 统计代码行数源码
- QT4.3.2在VC++ 6.0下安装过程
- [转贴]在 .NET 中使用大对象
- C#中的用户登录验证代码
- Hibernate
- 无耐人生
- 凡事“有利有弊 有得有失”
- ASP.NET中Session的状态保持
- 跳槽 数据库