public int byteCount() throws IOException {
    	int count = 0;
    	
    	try {
            inputByte = new FileInputStream(this.file);
        } catch (FileNotFoundException fileNotFoundException) {
        }
    	
    	try{ 
     	   while(inputByte.read() != -1){
     		   count++;
     	   }
     	} catch (NoSuchElementException elementException) {
             System.err.println("File improperly formed.");
             input.close();
         } catch (IllegalStateException stateException) {
             System.err.println("Error reading from file.");
         } 
    	finally {
            if (inputByte != null)
                inputByte.close(); // close the Scanner and the file
        } // end try-catchfinally
    	return count;
    }