Try Binary:
Dim sr As New BinaryReader(File.OpenRead("test.txt"))
Do While sr.PeekChar >= 0
Console.Write(Chr(sr.ReadByte))
Loop
sr.Close()
Notice I used chr code to convert bye to character.
--
Thiele Enterprises - The Power Is In Your Hands Now!
--
"Jack Russell" <ja***@norubbish.tpg.com.auwrote in message
news:OJ**************@TK2MSFTNGP06.phx.gbl...
Ryan S. Thiele wrote:
I think it's in the UTF encoding.
The '+' may not be a valid charactor, so it ignores it.
Can you avoid UTF7? UTF8 seems to work fine.
You are right, I just discovered that UTF7 regards + as an escape character.
I have files written by the old Fileopen, printline,fileclose method
I use streamreader to read these as it seems much faster than openfile,
lineinput.
It all works fine until I try to read files containing French such as
äüöéèà
The only way I can find to read these is with UTF7, everything else
ignores them.
Any ideas gratefully received.
Jack