如何計算no。我們上傳的文件中的行可能是文本文件或csv或excel文件。 即時通訊使用的代碼來獲取記錄計數是這樣的:使用vb.net讀取的行數
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
,但在某些情況下,即時得到錯誤計數。它沒有顯示確切的數字。
請幫助,我應該能夠得到沒有循環每個記錄在文件中的計數。
謝謝。
@chinnu:閱讀本http://stackoverflow.com/faq#howtoask –