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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Nov 7, 2012, 6:53 AM
string lastLine = System.IO.File.ReadLines(filePath).Last();