Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VB 6.0 如何將文字檔讀入

0 views
Skip to first unread message

加菲貓

unread,
Oct 14, 2002, 3:52:45 AM10/14/02
to
請問:
我有個文字檔內記載了100筆資料(每筆一行),
請問我該在VB中將這些資料一一讀入(input)作處理??

謝謝大家

--
----== Posted via Openfind 網路論壇 ==-----
http://bbs.openfind.com.tw/ 提供免費的登載文章及查詢服務
※來源:211.21.*


玉米

unread,
Oct 14, 2002, 10:46:33 AM10/14/02
to
※ 引述《"加菲貓" <tosc...@bbs.openfind.com.tw>》之銘言:
> 請問:
> 我有個文字檔內記載了100筆資料(每筆一行),
> 請問我該在VB中將這些資料一一讀入(input)作處理??
> 謝謝大家
Dim tmp As String

Open "data.txt" For Input As #1
Do Until EOF(1)
Line Input #1, tmp
Print tmp
Loop
Close #1

--
個人網站
http://netcity.hinet.net/n7136

0 new messages