Answers for "get data from text file in c#"

C#
4

read text file to string c#

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

how to read a text file C#

string[] text = System.IO.File.ReadAllLines(@"C:usersusernamefilepathfile.txt");
Posted by: Guest on October-06-2020

C# Answers by Framework

Browse Popular Code Answers by Language