How to read from a file in C#? - Biz Tech

How to read from a file in C#?

 string content = File.ReadAllText("myfile.txt");
Console.WriteLine(content);