a simple file analyser written in java