I have a huge file with lines. All lines should be added to the list in my code. What is the fastest way to do this? I found this one , but I do not know how to use it to read a line in a line.
I suspect the inline solution should be fast enough:
List<String> allLines = Files.readAllLines(Paths.get("location/of/your/file"));
(if your JVM has enough memory)
Source: https://habr.com/ru/post/1615668/More articles:Change auto-detect at runtime - iosHow to connect to SQL server database in R - sql-serverAPI API Token Server Token Server Configuration Error - apiкакой метод я могу использовать для сокращения аббревиатуры часового пояса во всех браузерах? - javascriptProcess a huge file and quickly call a function on each line of the file. - javaRselenium team for "save link as" - rHandling 404 errors when making changes to Google Drive - google-drive-sdkПравильный способ создания схемы мангуста для динамического числа пар ключ/значение - javascriptКак изменить "arg" в Lua на С++ - c++R скачать с aspx в https получить сайт вместо CSV - rAll Articles