the below code works fine until it runs across a line that has something like this CCD-FX200E|PV01195|"Tape End" Display Remains Burning| ....... etc..
It's messing up because of the quote that comes after the Bar
how can i correct this without changing the original text file
Code:Using reader As New TextFieldParser(FilePath) reader.SetDelimiters("|") 'Read the file line by line. Do Until reader.EndOfData Dim fields = reader.ReadFields() '..do something here Loop End Using




Reply With Quote