I'm attempting to read a fairly large (~28MB) file that contains only a single line of text. I've tried using a BufferedReader, but readLine() crashes with an Out of Memory error. Is there a better way of doing this? Would reading it in a character at a time with read() work?
Question
parad0x
I'm attempting to read a fairly large (~28MB) file that contains only a single line of text. I've tried using a BufferedReader, but readLine() crashes with an Out of Memory error. Is there a better way of doing this? Would reading it in a character at a time with read() work?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts