Re: Buffered Reader problem
Thursday, April 15, 2004 04:02 AM
BufferedReader won't cache the whole file in one go; not unless you have set the buffer's size to 20Mbytes. Your problem is more likely to be caused by your not discarding lines once they have been read in. I suggest that you probably need to review your own caching methods. If possible, perhaps you should read in a block of N lines, generate the stats, discard the lines and then repeat the process.