common_helper/src/main/java/com/xiongyingqi/util/FileHelper.java
public static File writeStringToFile(File file, String string) {
        try {
            byte[] bts = string.getBytes(getEncode(file));
            file = writeBytesToFile(bts, file);
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
            ;
            LOGGER.error(e);
        }
        return file;
    }
public static File writeStringToFile(File file, String string) {
        try {
            byte[] bts = string.getBytes(getEncode(file));
            file = writeBytesToFile(bts, file);
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
            ;
            LOGGER.error(e);
        }
        return file;
    }
将字符串写入文件 <br>
2013-9-6 下午12:09:45

@param file
@param string
@return