日期:2014-05-20 浏览次数:20695 次
public void wirte() throws Exception { URL url = new URL("http://www.csdn.com/save.txt"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); PrintWriter pw=new PrintWriter(new OutputStreamWriter(connection.getOutputStream())); pw.write("zzzzzzzz"); }