Update Principal.java

Reading a file for compressing its content.