At present I use the following to read a text file
...
private BufferedReader in = null;
...
try {
in = new BufferedReader( new FileReader(File name));
while((line = in.readLine()) != null) {
// work
}
I would like to gzip the input file, how do I change my code
to read a gzipped text file? From the Sun tutorial I only saw
how to read a given number of bytes, but I want to read lines.
Any help appreciated.
tnx, Phil...
...
private BufferedReader in = null;
...
try {
in = new BufferedReader( new FileReader(File name));
while((line = in.readLine()) != null) {
// work
}
I would like to gzip the input file, how do I change my code
to read a gzipped text file? From the Sun tutorial I only saw
how to read a given number of bytes, but I want to read lines.
Any help appreciated.
tnx, Phil...
Comment