|
-
Jul 31st, 2002, 07:07 AM
#1
Thread Starter
Member
How to read in one line of a file
Can someone tell me the syntax to read in one line of a file?
Tks
-
Jul 31st, 2002, 07:14 AM
#2
Addicted Member
VB Code:
Open "C:\Myfile.TXT" For Input As #1
Line Input #1, StrTemp
Close #1
msgbox StrTemp
-
Jul 31st, 2002, 07:23 AM
#3
Member
it can use vbcode down
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
I am a vb fine,
but my English was poor.
-
Jul 31st, 2002, 07:28 AM
#4
Thread Starter
Member
Re: it can use vbcode down
[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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|