ralphtrent
Programmer
Hi
I have an app that I wrote that takes a text file, reads it line for line. If the line meets certain criteria, then I store the line in an ArrayList. Then I take the array list and sort it so I can analyze each line. That part is all done and complete. I just got a text file that 1.5 gig, yes, 1.5 GIG. When running the app against the file, the memory usage is about 900 meg and then my system freezes. Is there a better way to do this? The reason I through it in an array list is because of its sorting feature and I can go through each item, one by one.
Thanks
Ralph
I have an app that I wrote that takes a text file, reads it line for line. If the line meets certain criteria, then I store the line in an ArrayList. Then I take the array list and sort it so I can analyze each line. That part is all done and complete. I just got a text file that 1.5 gig, yes, 1.5 GIG. When running the app against the file, the memory usage is about 900 meg and then my system freezes. Is there a better way to do this? The reason I through it in an array list is because of its sorting feature and I can go through each item, one by one.
Thanks
Ralph