Hello!
I'm a JAVA newbee and am working on an exercise to read in a file, check the record text for a certain character string then write the record to an output file when the record has a certain character string.
Problem is, the input file is massive. The only class I have seen used in examples is 'BufferedReader' and it's 'readLine' method. The input file is way too big to buffer.
The 'FileReader' class has no associated 'readLine' method (at least I can't find one documented!).
Anyone have any ideas? Performance for this is not too much of an issue (if I have to read 1 record at a time). Can BufferredReader be used to read 'chunks' of the file at a time, rather than the whole?
Cheers,
Dave.
mailto:dave.ring@barclays.co.uk
I'm a JAVA newbee and am working on an exercise to read in a file, check the record text for a certain character string then write the record to an output file when the record has a certain character string.
Problem is, the input file is massive. The only class I have seen used in examples is 'BufferedReader' and it's 'readLine' method. The input file is way too big to buffer.
The 'FileReader' class has no associated 'readLine' method (at least I can't find one documented!).
Anyone have any ideas? Performance for this is not too much of an issue (if I have to read 1 record at a time). Can BufferredReader be used to read 'chunks' of the file at a time, rather than the whole?
Cheers,
Dave.
mailto:dave.ring@barclays.co.uk