K
Krich
I have text file contains word in English language and in
foreign language and I include this text file as embedded
resource in
my project. VB.NET editor can display the foreign langue
of this text file.
create stream reader object to read from this file. The
object can read the data in text file but it seems when I
display it to
screen using streamreader.Readline method, word in foreign
language can not be display in the correct word. It is
displayed
as garbage font.
Do I miss somthing?
This is my code:
' Get the current assembly.
Dim Asm As [Assembly] = [Assembly].GetExecutingAssembly()
strName = Asm.GetName().Name + ".TestText.txt"
' Resources are named using a fully qualified name.
Dim strm As Stream = Asm.GetManifestResourceStream
(strName)
' Read the contents of the embedded file.
Dim reader As StreamReader = New StreamReader(strm)
msgbox( reader.readend )
foreign language and I include this text file as embedded
resource in
my project. VB.NET editor can display the foreign langue
of this text file.
create stream reader object to read from this file. The
object can read the data in text file but it seems when I
display it to
screen using streamreader.Readline method, word in foreign
language can not be display in the correct word. It is
displayed
as garbage font.
Do I miss somthing?
This is my code:
' Get the current assembly.
Dim Asm As [Assembly] = [Assembly].GetExecutingAssembly()
strName = Asm.GetName().Name + ".TestText.txt"
' Resources are named using a fully qualified name.
Dim strm As Stream = Asm.GetManifestResourceStream
(strName)
' Read the contents of the embedded file.
Dim reader As StreamReader = New StreamReader(strm)
msgbox( reader.readend )