标签:ati block tac output 复制 todo ace str out
public class liuDu01 { public static void main(String[] args) {
//1.创建File类 File file =new File("Howlle.txt"); File file01 =new File("Howll.txt");
//2.创建相关的流 FileInputStream S1=null; FileOutputStream S2=null; try { S1=new FileInputStream(file); S2=new FileOutputStream(file01);
//3.读的相关操作 byte [] buffer=new byte[50]; int le; while((le=S1.read(buffer))!=-1){ S2.write(buffer, 0, le); } } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); }finally{
//4.关闭流 try { S1.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } try { S2.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } }
标签:ati block tac output 复制 todo ace str out
原文地址:https://www.cnblogs.com/tiantongtong/p/12950695.html