Hello,
I have 2 questions about the files. Firstly, are there any method to know the number of lines in a file? For the moment I am reading a file line by line until the end to get the number of lines but not really great, especially if the file is heavy reading. Then I have a program that must read a file and retrieve all rows in a table. I again made a line by line reading of the file with a readLine () and it works well. My problem is that most of the time, the file will read a file and large enough so I sometimes have problems with memory even increasing RAM can use Eclipse. So I wanted to know if there was a method to retrieve all rows of a file without having to call to readLine (). Thank you in advance for your help.
Bookmarks