Create CommonUtil.java

The file for common functions to read and write a file