Can someone tell me the syntax to read in one line of a file?
Tks
Printable View
Can someone tell me the syntax to read in one line of a file?
Tks
VB Code:
Open "C:\Myfile.TXT" For Input As #1 Line Input #1, StrTemp Close #1 msgbox StrTemp
dim astring() as string,i as long
Open "C:\Myfile.TXT" For Input As #1
do while not eof(1)
Line Input #1, StrTemp
i=i+1
redim preseve astring(i)
astring(i)=strtemp
Close #1
msgbox StrTemp
[QUOTE]Originally posted by qflash
dim astring() as string,i as long
Open "C:\Myfile.TXT" For Input As #1
do while not eof(1)
Line Input #1, StrTemp
i=i+1
redim preseve astring(i)
astring(i)=strtemp
Close #1
msgbox StrTemp [/QUO
Thank you