Click to See Complete Forum and Search --> : double quote appears on open and end of each lines.


qupit
September 13th, 2009, 10:41 PM
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.

Alsvha
September 14th, 2009, 02:20 AM
Edit: Misread your question.

How do you write the text files?

qupit
September 15th, 2009, 08:23 PM
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)

dglienna
September 15th, 2009, 10:34 PM
that isn't extracting anything. show more code that writes the data, and also the extraction. what about notepad? don't see that either