Add read file function to FileUtil.
Add test for readFile.