<Peter van der veenschrieb:
I have a VB project and added a text file to it as an embedded
resource.
But i can'f find a way now how to read this file just as a normal text
file with the streamreader command.
\\\
Imports System.IO
..
..
..
Dim f As Stream =
System.Reflection.Assembly.GetEntryAssembly().GetM anifestResourceStream( _
"<Name of the root namespace>.test.txt" _
)
Dim st As New StreamReader(f)
MsgBox(st.ReadToEnd())
st.Close()
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>