common_helper/src/main/java/com/xiongyingqi/util/FileHelper.java
public static String readFileToString(File file) {
        byte[] bts = null;
        try {
            bts = readFileToBytes(file);
        } catch (Exception e) {
            e.printStackTrace();
        }
        String content = null;
        try {
            content = new String(bts, getEncode(file));
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return content;
    }
public static String readFileToString(File file) {
        byte[] bts = null;
        try {
            bts = readFileToBytes(file);
        } catch (Exception e) {
            e.printStackTrace();
        }
        String content = null;
        try {
            content = new String(bts, getEncode(file));
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return content;
    }
读取指定文件的文件内容（以String的形式） <br>
2013-8-30 下午5:26:55

@param file
@return