"Marcus O via DotNetMonster.com" <fo***@DotNetMonster.com> schrieb:
I am fairly new to vb.net and I have a problem when reading from text
file. The file contains characters not found in English (e.g. ?, ?, ?).
When I am doing a ReadLine those characters are skipped by vb.net. Does
anyone know what to do to fix my problem?
Depending on the encoding that was used to write the file, specify an
encoding ('System.Text.Encoding.*') in the 'StreamReader''s constructur.
BTW: I don't see the characters that are not read (they are relplaced by
question marks in your message.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>