I have a loop to look for the key i.d. "veh2." The loop is there because even though the next line in the text file is where it should be, it is not there in all cases. The problem I'm having as far as wording or a way to go about it is what if instead there is the key i.d. "veh1?
Do While (line_text.Substring(0, 4).ToString <> "VEH2") line_text = myreader.ReadLine Do While line_text.Length < 3 line_text = myreader.ReadLine() Loop Loop
How do I go about forgetting to search for VEH2 and instead deal with the text after VEH1 (if it is in fact there)?
Edited 4 Years Ago by Gus_19