How can I do that? My string for hello.txt is:
string hello = Properties.Resources.hello;
and I want it so:
Random rand = new Random();
IEnumerable<string> lines = File.ReadLines(hello);
var lineToRead = rand.Next(1, lines.Count());
var line = lines.Skip(lineToRead - 1).First();
txtbx_output.Text = line.ToString();
This here works for me with no problems:
IEnumerable<string> lines = File.ReadAllLines(@"my pathblabla\Text\hello.txt");
but not as a resource !
This makes me very angry