added a BufferedReader to read the file length