Question:

Write a sample code to write the contents to text file in C#?

Answer:

Below is the sample code to write the contents to text file –

Using System.IO;
File.WriteAllText(”mytextfilePath”, “MyTestContent”);

Keywords:

© 2017 QuizBucket.org