|
-
Dec 4th, 2000, 08:51 AM
#1
Thread Starter
Hyperactive Member
What's the best way to read a text file line by line?
line input is fine for reading the data but how to do you
continue to the next line and stop at the end
Bababooey
Tatatoothy
Mamamonkey
-
Dec 4th, 2000, 09:28 AM
#2
Do While...
Code:
Open "Filename" for Input as #1
Do While Not EOF (1) '1 is the file number (open...for..as #1)
LineInput #1,strVariable
'Do your stuff here for each line
loop
Close #1
thats it!
Hope this helps
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Dec 4th, 2000, 10:01 AM
#3
Frenzied Member
I know it's just a typo, but it case somebody gets stuck:
Code:
LineInput #1
should be
Line Input #1
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Dec 4th, 2000, 10:26 AM
#4
Jop!
JOP! you think your Sooooo Smart catching other peoples mistakes! Well let me tell YOU somethin.....
Thanks

Good catch...
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Dec 4th, 2000, 11:41 AM
#5
Thread Starter
Hyperactive Member
Thx for the help
I figured it out a few seconds after i posted it.
I thought u had to treat it like a DB and move to the next
line manually. Guess not, it's simple for once 
thanks fellas
Bababooey
Tatatoothy
Mamamonkey
-
Dec 4th, 2000, 11:53 AM
#6
Frenzied Member
JOP! you think your Sooooo Smart catching other peoples mistakes! Well let me tell YOU somethin.....
Thanks
Good catch...
hehe 
at least your not that type a guy that starts whining when I correct somebody I've seen that lots of times happening here.
Have a nice day 
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
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
|