Answers for "how to read a text file to a string in c#"

C#
5

read text file to string c#

string mystring = System.IO.File.ReadAllText(@"C:\Users\Public\TestFolder\WriteText.txt");
Posted by: Guest on February-26-2021
2

c# read file into a string

string mystring = File.ReadAllText(your_file_location, Encoding.UTF8);
Posted by: Guest on May-07-2021

Code answers related to "how to read a text file to a string in c#"

C# Answers by Framework

Browse Popular Code Answers by Language