I
Ian Oldbury
I'm having a problem reading from a flat file, in the file single character
"£" and "»" exist
however when i view the contents of the file line by line these characters
don't exist.
Has anyone got any suggestions????
Here is the code...
Dim LineContents as string
Dim fs As FileStream
Dim sr As StreamReader
fs = New FileStream("c:\product.txt", FileMode.Open, FileAccess.Read,
FileShare.Read)
sr = New StreamReader(fs)
While sr.Peek > -1
LineContents = Convert.ToString(sr.ReadLine)
End While
"£" and "»" exist
however when i view the contents of the file line by line these characters
don't exist.
Has anyone got any suggestions????
Here is the code...
Dim LineContents as string
Dim fs As FileStream
Dim sr As StreamReader
fs = New FileStream("c:\product.txt", FileMode.Open, FileAccess.Read,
FileShare.Read)
sr = New StreamReader(fs)
While sr.Peek > -1
LineContents = Convert.ToString(sr.ReadLine)
End While