G
Guest
This is totally rediculous; please let me know what I am doing wrong here, I
must be doing something really stupid.
This snippit of code is reading a text file, a line at a time:
Dim srPS As New
StreamReader("\\marsweb\TempDataflowHolding\FromDataflow\SQL\Migration\20051121010118_20051121124555_RateUploadSQL_All.SQL")
Dim strFileLine As String
While srPS.Peek <> -1
strFileLine = srPS.ReadLine()
System.Diagnostics.Debug.WriteLine(strFileLine)
End While
srPS.Close()
The last line of the file reads:
"SQLSTRING1|UPDATE SchedulerEventParameter SET epValue = '£' WHERE epSeIndex
= 6 AND epKey= 'strCurrency'"
However, VB.Net reads the line as :
"SQLSTRING1|UPDATE SchedulerEventParameter SET epValue = '' WHERE epSeIndex
= 6 AND epKey= 'strCurrency'"
The pound sign dissapears!! How can this happen?
I tried adding numerous other pound signs within the file and it strips
these out too...I must be doing something silly - what is it I'm doing wrong
here?
must be doing something really stupid.
This snippit of code is reading a text file, a line at a time:
Dim srPS As New
StreamReader("\\marsweb\TempDataflowHolding\FromDataflow\SQL\Migration\20051121010118_20051121124555_RateUploadSQL_All.SQL")
Dim strFileLine As String
While srPS.Peek <> -1
strFileLine = srPS.ReadLine()
System.Diagnostics.Debug.WriteLine(strFileLine)
End While
srPS.Close()
The last line of the file reads:
"SQLSTRING1|UPDATE SchedulerEventParameter SET epValue = '£' WHERE epSeIndex
= 6 AND epKey= 'strCurrency'"
However, VB.Net reads the line as :
"SQLSTRING1|UPDATE SchedulerEventParameter SET epValue = '' WHERE epSeIndex
= 6 AND epKey= 'strCurrency'"
The pound sign dissapears!! How can this happen?
I tried adding numerous other pound signs within the file and it strips
these out too...I must be doing something silly - what is it I'm doing wrong
here?