Create CommonUtil.java

The file for set of the common functions to read and write the file