Answers for "read a string from a file c#"

C#
2

c# read file into a string

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

c# read from file

string[] lines = File.ReadAllLines(@"c:\file.txt", Encoding.UTF8);
Posted by: Guest on September-21-2021

C# Answers by Framework

Browse Popular Code Answers by Language