Check out example codes for "write last line txt file c#". It will help you in understanding the concepts better.

Code Example 1

private string Add(string asd) {
    string filename = "asd.txt";
    File.AppendAllText(filename, asd);
}

Learn ReactJs, React Native from akashmittal.com