How is it possible to know the number of lines from a text file? Now I find out like this:
int count = System.IO.File.ReadAllLines(path_base).Length; But this method takes a lot of time and clogs up RAM, when loading text files larger than 1 gigabyte, this is not relevant.