本文共 373 字,大约阅读时间需要 1 分钟。
File txt = new File("E:/log1.xml"); if(!txt.exists()) { txt.createNewFile(); } byte bytes[]=new byte[1024]; bytes=rtnXml.getBytes(); int len = bytes.length; FileOutputStream fos=new FileOutputStream(txt); fos.write(bytes,0,len); fos.write(bytes); fos.close();
转载地址:http://hqcab.baihongyu.com/