ClassPathResource cpr = new ClassPathResource(TEMPLATE_PLIST_PATH); InputStream in = cpr.getInputStream(); File file= new File(fileRootPath + fileIosPlistPath + "/" + new Date().getTime() + "temporary.plist"); FileUtils.copyToFile(in, file); List<String> strings = FileUtil.readUtf8Lines(file);
file.delete();