Answers for "c# save string in text file"

C#
16

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
1

c# store strings in file

System.IO.File.WriteAllText("C:your_pathyour_file", Your_contents);
Posted by: Guest on April-15-2021

C# Answers by Framework

Browse Popular Code Answers by Language