N
.Net Sports
Using StreamReader to open and read files, I'm trying to parse some
text within a file at a starting point grabbing all the text to the
ending point; it works on one particular file (a .txt file)
with no problem, but on an .asp file when I try it
abc1 = xyz1.Substring(xyz1.IndexOf("starting keyword"),
xyz1.LastIndexOf("ending keyword"))
Response.Write(abc1)
it goes beyond the LastIndexOf keyword and grabs a bunch of following
text (about the next 4r or 5 lines)... my ending keyword only shows up
once in the particular file I'm trying to parse, so I know I'm not
doing anything wrong there.
????
NetSports
text within a file at a starting point grabbing all the text to the
ending point; it works on one particular file (a .txt file)
with no problem, but on an .asp file when I try it
abc1 = xyz1.Substring(xyz1.IndexOf("starting keyword"),
xyz1.LastIndexOf("ending keyword"))
Response.Write(abc1)
it goes beyond the LastIndexOf keyword and grabs a bunch of following
text (about the next 4r or 5 lines)... my ending keyword only shows up
once in the particular file I'm trying to parse, so I know I'm not
doing anything wrong there.
????
NetSports