Answers for "c# read to text file"

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
18

asp.net c# write string to text file

using (StreamWriter writer = new StreamWriter("email.txt", true)) //// true to append data to the file
{
    writer.WriteLine("your_data"); 
}
Posted by: Guest on July-01-2020

C# Answers by Framework

Browse Popular Code Answers by Language