Monday, January 27, 2014

C# read last line of text file

string sLast = File.ReadLines(@"e:\file.txt").Last();

you need to have

using System.Linq;

also dot net frame work 4

No comments:

Post a Comment