討論串[VB6 ] 如何不用回圈讀文字檔
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
把文字檔當 Binary 讀,就能一次讀全部. Function TextReadAll(ByVal sFile As String) As String. If sFile = Empty Or Len(Dir$(sFile)) = 0 Then. Exit Function. End If. D
(還有203個字)
內容預覽:
如果我現在要一次把整個文字檔讀入. 都是用回圈一次讀一行. 有沒有方法可以一次讀全部. 我有在網路上找到下面這個例子. txtContent.Text = "" '清除內容. Open sFile$ For Input As #1 '開啟文字檔. txtContent.Text = StrConv(
(還有20個字)
首頁
上一頁
1
下一頁
尾頁