Check out example codes for "how to call last string from text file C#". It will help you in understanding the concepts better.
Code Example 1
If the file is not too large, just read the lines and pick the last: string lastLine = File.ReadLines("pathToFile").LastOrDefault();
Learn ReactJs, React Native from akashmittal.com