相关疑难解决方法(0)

使用vb.net读取行数

如何计算没有.我们上传的文件中的行可能是文本文件,也可能是csv或excel文件.我使用代码获取记录计数如下:

Dim FileCount = From lin1 As String In File.ReadAllLines(hidFilePath.Value.ToString())
Let dd = lin1.Count
Select dd
Dim file_count As Integer =  FileCount.Count
Run Code Online (Sandbox Code Playgroud)

但在某些情况下,我的错误计数.它没有显示确切的数量.

请帮助,我应该能够得到计数而不循环文件中的每个记录.

谢谢.

vb.net

2
推荐指数
1
解决办法
2万
查看次数

标签 统计

vb.net ×1