获取信息生成html页面
2015-09-21 10:15
381 查看
public static boolean setContentToFile(File file, String content) { boolean bool = false; BufferedOutputStream output = null; try { output = new BufferedOutputStream(new FileOutputStream(file)); output.write(content.getBytes("UTF-8")); bool = true; } catch (Exception e) { bool = false; e.printStackTrace(); } finally { if (output != null) { try { output.close(); output = null; } catch (IOException e) { } } } return bool; }
相关文章推荐
- HTML的标签canvas
- HTML必须知道的一些知识点
- HTML页面加载和解析流程
- HTML标签大全(常用)
- R语言-Kindle特价书爬榜示例 & 输出HTML小技巧
- 简易版网页计算器html页面
- 关于html开发移动应用的开发的一些优缺点
- HTML属性
- HTML事件
- 采集网页数据生成到静态模板newslist.html文件中(正则表达式)
- HTML符号代码速查表
- 学习整理与细化(2)——HTML VS XHTML
- 20150917-html第二次课
- Html 中的背景(background)
- HTML中的文本控制
- Excel Spreadsheet 转换web HTML 5 展示
- 标签
- iframe
- html你可能还不知道的一些知识点
- 2015年9月17日第一节课html1-2