摘要: 列子: public static void main(String[] args) throws IOException { File file = new File("F:\\jimmy\\a.txt"); if(!file.exists()) file.createNewFile(); OutputStream out = new FileOutputStream(file); out.write(new String("我\n勒\n了\n个\n去").getBytes()); out.close(); }打开文本,里面内容为:我■勒■了■个■去。 阅读全文
posted @ 2011-08-12 13:21 Spring MVC 3 阅读(509) 评论(0) 推荐(0) 编辑