loadStrings() alternative for HUGE files
in
Programming Questions
•
2 years ago
To pre-process a huge data file for SQL loading, I have to read a text file and parse each line. Everything works great on a test file, but the real file is over a GB with millions of lines and generates OutOfMemoryError. I assume the array is too large...
Is there an alternative method of reading one line at a time instead of loading them all into an array?
Is there an alternative method of reading one line at a time instead of loading them all into an array?
1