|
-
Aug 1st, 2004, 09:36 AM
#1
Thread Starter
Fanatic Member
Ignore first line of file [RESOLVED]
Hey,
I'm im a kind of sticky situation here...
I know how I would skip to the second line of a file using StreamReader, i would just do:
VB Code:
streamer.ReadLine()
Dim strLine as String = streamer.ReadLine()
So basically that skips the first line and puts the second line into the string strLine
But... I've gone and stupidly used FileOpen instead, and have already implemented this throughout the entire code so I can't switch back now! Aggh!
If I were to rewrite this prog I would definitely stay away from FileOpen, but i used it because it was quick and easy to read through the file fast.
So... is there the same method as that, that I shown for the streamreader with FileOpen instead? So I can just ignore the first line and read the rest instead.
Thanks a bunch!
Last edited by LITHIA; Aug 1st, 2004 at 04:25 PM.
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
|