Results 1 to 10 of 10

Thread: [RESOLVED] problem using delimiter

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2012
    Posts
    281

    Resolved [RESOLVED] problem using delimiter

    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
    Last edited by M@dH@tter; May 12th, 2013 at 11:14 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width