|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Reading the contents in Text File
Hi,
I have written a VB Code that would read one line at a time from a text file. If I have 10 lines in my text file, after getting the contents from 8th line, I want to again go back and read the 5th line. How do I do it in VB? Can somebody help me plz????? |
|
#2
|
|||
|
|||
|
You can't read backwards from a file, you'll have to either store file contents in variables or read through the file from the start a 2nd time.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
|||
|
|||
|
Thank you....
|
|
#4
|
|||
|
|||
|
Quote:
Yep, just shove it all in a variable, and delimit it by the linebreaks. Then you can recheck your line myVariable(4) = line 5 |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Reading the contents in Text File |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|