赞
踩
public void addInfoTXT(String paths,String contents){ String path = paths; String content = contents; FileOutputStream fs = null; File file = new File(path); try { //这个如果有乱码 file,"gbk"(未测试) fs = new FileOutputStream(file); fs.write(content.getBytes()); fs.flush(); fs.close(); } catch (Exception e){ e.printStackTrace(); }
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。