Answers for "how to call last string from text file C#"

C#
0

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();
Posted by: Guest on August-14-2020

Code answers related to "how to call last string from text file C#"

C# Answers by Framework

Browse Popular Code Answers by Language