c# read file into a string code example
Example 1: read text file to string c#
string mystring = System.IO.File.ReadAllText(@"C:\Users\Public\TestFolder\WriteText.txt");
Example 2: c# read file into a string
string mystring = File.ReadAllText(your_file_location, Encoding.UTF8);