URL url = new URL(http://....../b.html);
InputStream in = url.openStream();
FileOutPutStream fos = new FileOutputStream("e://a.html");
int t;
while((t = in.read()) != -1) {
fos.write((char)t);
}
fos.close();
in.close();
URL的使用 从网络地址上的网页下载到本机上
最新推荐文章于 2022-01-17 09:54:29 发布