Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2010 [RESOLVED] problem using delimiter

$
0
0
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


Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>