special line for eg
Read a file upto line starting with 123
File
abc
1ABC
123
xyz
The required stream should contain
abc
1ABC
And other question what is fastest way to read file in java?
https://docs.oracle.com/javase/tutorial/essential/io/ — go read up
Обсуждают сегодня