Current Forum: Homework 4 - Huffman Trees (Part 1) |
Date: Thu Oct 11 2001 10:01 pm |
Author: Bortz, Andrew S. <abortz@andrew.cmu.edu> |
Subject: Re: EOF? |
|
|
I nice convention that you can use because the BitReader throws EOFException's when you get to the end, is this:
try { while (true) { // Insert reading and processing code here } } catch (EOFException e) {}
That'll let you read through the file and not have to check for the EOF. |
|