Hello
I'm trying to code a Java program that will scan a text file and output the lines I need (Its all the source code from an Email Inbox and I only need the headers)
the whole text file is 172,066KB (3,048,394 lines in notepad)
The program Iv just written is working great until it tries to output line number 770, (which means its scanned 11,204 lines in the text file)
The scanner just stops working...
(fails to scan the next line)
Is java.util.scanner the wrong tool for scanning a file this big? Or am I just using too much memory and the java virtual machine is stopping it?
I'm trying to code a Java program that will scan a text file and output the lines I need (Its all the source code from an Email Inbox and I only need the headers)
the whole text file is 172,066KB (3,048,394 lines in notepad)
The program Iv just written is working great until it tries to output line number 770, (which means its scanned 11,204 lines in the text file)
The scanner just stops working...
Is java.util.scanner the wrong tool for scanning a file this big? Or am I just using too much memory and the java virtual machine is stopping it?





