how 2 check what's written on notepad with c# code example
Example: how to call last string from text file C#
If the file is not too large, just read the lines and pick the last:
string lastLine = File.ReadLines("pathToFile").LastOrDefault();
If the file is not too large, just read the lines and pick the last:
string lastLine = File.ReadLines("pathToFile").LastOrDefault();