CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2009
    Posts
    2

    Question double quote appears on open and end of each lines.

    Hi,

    I'm extracting data to a text file (notepad) using VB system IO.
    I'm not sure what is wrong.
    When i extract the file from computer A, it is OK

    Output:
    Data A
    Data B
    Data C
    Data D

    But from PC B,

    Output:
    "Data A"
    "Data B"
    "Data C"

    double quote appears on open and end of each lines.

    Anyone know why and how to solve this?
    Thanks.

  2. #2
    Join Date
    Feb 2005
    Location
    Denmark
    Posts
    742

    Re: double quote appears on open and end of each lines.

    Edit: Misread your question.

    How do you write the text files?
    Last edited by Alsvha; September 14th, 2009 at 02:24 AM.

  3. #3
    Join Date
    Sep 2009
    Posts
    2

    Re: double quote appears on open and end of each lines.

    Dim rdf As New IO.StreamWriter(ReadMe)

    sBatchHeader_FullString1 = "Data A"
    sBatchHeader_FullString2 = "Data B"
    sBatchHeader_FullString3 = "Data C"

    rdf.WriteLine(sBatchHeader_FullString1)
    rdf.WriteLine(sBatchHeader_FullString2)
    rdf.WriteLine(sBatchHeader_FullString3)

  4. #4
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: double quote appears on open and end of each lines.

    that isn't extracting anything. show more code that writes the data, and also the extraction. what about notepad? don't see that either
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

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

Featured