How to get the number of lines in a txt file in C# code example
Example: c# counting lines
public long CountLinesLINQ(FileInfo file)
=> File.ReadLines(file.FullName).Count();
public long CountLinesLINQ(FileInfo file)
=> File.ReadLines(file.FullName).Count();