cfisher440
Well-known member
- Joined
- Oct 11, 2005
- Messages
- 73
- Programming Experience
- 1-3
I would like to read a text file from one certain point to another certain point.
example. Read file line by line starting at line 21 UNTIL the "--------" string is found.
Once that is found, return the line number of the "--------" string.
21 A B C D E F G
22 1 2 3 4 5 6 7
23 THIS IS ANOTHER LINE OF TEXT
24 --------
25 Here is some more text.
In this case I will always know the number of the line to start on but will not know
which line number the "--------" string is on, but need only the data inbetween.
I'm finding that VB.net has a lot of good tools for playing with file streams (especially
regular expressions... very helpful!!!).
Any ideas would be appreciated.
example. Read file line by line starting at line 21 UNTIL the "--------" string is found.
Once that is found, return the line number of the "--------" string.
21 A B C D E F G
22 1 2 3 4 5 6 7
23 THIS IS ANOTHER LINE OF TEXT
24 --------
25 Here is some more text.
In this case I will always know the number of the line to start on but will not know
which line number the "--------" string is on, but need only the data inbetween.
I'm finding that VB.net has a lot of good tools for playing with file streams (especially
regular expressions... very helpful!!!).
Any ideas would be appreciated.