hi all,
i have one .txt file in that 10 lack record but i want only last record from them without spending time in loop up 10 lack record iteration
please help
Read Directly last line from big txt file using System.IO.StreamReader
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


VulpesRank #55 · 29.2K reputationPosted Nov 7, 2012, 1:53 AM EST
string lastLine = System.IO.File.ReadLines(filePath).Last();