I'm trying to read an embedded text file with System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream(resource);
but it gives me a Stream
. The embedded resource is a text file so, how can I turn this Stream
into a TextReader
?
TextReader tr = new StreamReader(stream);