标签:read input close fileinput while put java write stack
try {
InputStream in = new FileInputStream(new File(oldPath));
OutputStream out = new FileOutputStream(new File(newPath ));
byte[] be = new byte[100];
while (in.read(be) != -1) {
out.write(be);
}
in.close();
out.flush();
out.close();
} catch (Exception e) {
e.printStackTrace();
}
标签:read input close fileinput while put java write stack
原文地址:http://www.cnblogs.com/haorun/p/6183773.html