¡@

Home 

c# Programming Glossary: lastline

Read last line of text file

http://stackoverflow.com/questions/11625595/read-last-line-of-text-file

you really can't afford to read it all I'd just use var lastLine File.ReadLines file.txt .Last Note that this uses File.ReadLines..

How to read last “n” lines of log file

http://stackoverflow.com/questions/4619735/how-to-read-last-n-lines-of-log-file

if line null return buffer.ToArray buffer.Add line int lastLine lineCount 1 The index of the last line read from the buffer... than everything this indes while null line reader.ReadLine lastLine if lastLine lineCount lastLine 0 buffer lastLine line if lastLine.. this indes while null line reader.ReadLine lastLine if lastLine lineCount lastLine 0 buffer lastLine line if lastLine lineCount..