Davidw
06-16-04, 01:20 PM
I am writing to a file using the VB.NET writeline and when my data contains a double quote, the writeline adds another double quote to the file. The data is coming from a table and contains double quote in the field. My data might contain data like - 18" Gold chain. When this is writen to the file it is - 18"" Gold chain. I would guess that VB thinks this double quote is the end of the string so it is placing a double quote after this quote for the begining of the next string.
My code reads from an input file then reads from a table to get the data then writes out to a file to be used by another program down the line. A code snippet:
.
.
.
bellout = bellout + item$ + descr1 + descr2 + descr3 + country + price + vendornum + vendorstyle + GOLDKTS + fixture + class1 + dept + labeltype + ptemp + div + blast + vbCrLf
.
.
.
WriteLine(3, bellout)
Is there a way to stop this from happening.
My code reads from an input file then reads from a table to get the data then writes out to a file to be used by another program down the line. A code snippet:
.
.
.
bellout = bellout + item$ + descr1 + descr2 + descr3 + country + price + vendornum + vendorstyle + GOLDKTS + fixture + class1 + dept + labeltype + ptemp + div + blast + vbCrLf
.
.
.
WriteLine(3, bellout)
Is there a way to stop this from happening.