read file string c# code example
Example 1: read file c#
string text = File.ReadAllText(@"c:\file.txt", Encoding.UTF8);
Example 2: c# read file into a string
string mystring = File.ReadAllText(your_file_location, Encoding.UTF8);
string text = File.ReadAllText(@"c:\file.txt", Encoding.UTF8);
string mystring = File.ReadAllText(your_file_location, Encoding.UTF8);