Click to See Complete Forum and Search --> : How do you read from a file?


PanasonicSubz
December 7th, 1999, 09:32 AM
how do you read a file? say a .txt file. thanks

PanasonicSubz

Lothar Haensler
December 7th, 1999, 09:50 AM
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

smalig
December 10th, 1999, 08:13 AM
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




smalig@hotmail.com
http://vbcode.webhostme.com/