how do you read a file? say a .txt file. thanks
PanasonicSubz
Printable View
how do you read a file? say a .txt file. thanks
PanasonicSubz
dim h as integer
h = freefile
dim strLine as string
open "yourfile.txt" for input as #h
do while not eof( h)
line input #h, strLine
' do something with strLline
Loop
close #h
Look also follow sample about file:
How to load a text file into a textbox in one call.
http://vbcode.webhostme.com/en/code.asp?id=57
[email protected]
http://vbcode.webhostme.com/