Is there exists some another way to parse .txt file in Java except
BufferedReader reader = new BufferedReader(...);
String line;
while ((line = reader.readLine()) != null) {...}
?
I need to parse this file moving by 2 rows. Is there any way to rebuild while loop into forEach with iterator?
Thanks for the answer.