读取文件

public String readForm(String fileName) throws FileNotFoundException, UnsupportedEncodingException,IOException {
        
        File file = SpringHelper.context.getResource(fileName).getFile();        
        return FileUtils.readFileToString(file);
    }

你可能感兴趣的:(java,文件,读取)