Dim path as String = "\temp\my test.txt"
Try
Dim sr as StreamReader = New StreaReader(path,
System.Text.Encoding.ASCII)
Dim strLine as String
strLine = sr.Readline
Do While (Not strLine is Nothing)
MessageBox.Show(strLine)
strLine = sr.ReadLine
Loop
Catch e As Exception
MessageBox.Show ("Error: ", e.toString())
End Try
My problem is this: when I read lines the messagebox show strange text like
"\}qoklmngh{oklmnops{|}.."
Any Idea? Need some conversion?
Thanks all.
--
Martignago Daniele
"Daniele Martignago" <marti...@ergon.it> wrote in message
news:eeBERi%23EDH...@TK2MSFTNGP12.phx.gbl...
You are not alone :(
>.
>
How do you know that the text file is ASCII? Look at it with a hex editor.
--
Ginny Caughey
Windows Embedded MVP
"Eric de carufel" <eric.de...@imagina.ca> wrote in message
news:0fe201c31a2b$46edeea0$3101...@phx.gbl...