zoukankan      html  css  js  c++  java
  • 【复制文本:按行复制文件】

    package test;
    
    import java.io.*;
    
    /**
     * @author shusheng
     * @description 按行复制文件
     * @Email shusheng@yiji.com
     * @date 2018/11/12 15:12
     */
    public class CopyFileDemo5 {
    
        public static void main(String[] args) throws IOException {
            //封装数据源
            BufferedReader br = new BufferedReader(new FileReader("C:\Users\shusheng\Pictures\111.txt"));
            //封装目的地
            BufferedWriter bw = new BufferedWriter(new FileWriter("C:\Users\shusheng\Pictures\222.txt"));
            String line = null;
            while((line=br.readLine())!=null){
                bw.write(line);
                bw.newLine();
                bw.flush();
            }
            br.close();
            bw.close();
        }
    
    }
    终身学习者
  • 相关阅读:
    gevent
    pymongo的数组操作
    pymongo的聚合操作
    python操作redis的情况总结
    协程
    3
    6
    10
    4
    5
  • 原文地址:https://www.cnblogs.com/zuixinxian/p/9947748.html
Copyright © 2011-2022 走看看