Check out example codes for "creating a streamwiter file C#". It will help you in understanding the concepts better.

Code Example 1

StreamWiter writer = new StreamWriter ("Rainfall.txt", true);
writer.WriteLine("")

Learn ReactJs, React Native from akashmittal.com