Instructions:
- Open Any Project or create a new one.
- Use the following code to write text to any File
FileInfo f = new FileInfo("C:\\text.txt"); //Give address of your file here
StreamWriter sw = f.AppendText(); //It will place your cursor at the end of file
sw.WriteLine("Thanks For Visiting HowToIdeas.net"); //This will ad the string to your file
sw.Close(); - It will Append the text at the end of the file you will mension, every time this code will run. See the result of this code after running three times

Incoming search terms:
- c# instruction to save text ina textbox with given (1)
- how to save a text file that is opened or created newly as notepad using c# net (1)