美文网首页
JavaSE PrintWriterDemo

JavaSE PrintWriterDemo

作者: 23b57d72cde7 | 来源:发表于2018-04-16 19:26 被阅读0次
    package com.sxt;
    
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.PrintWriter;
    
    /**
     * 打印字符流
     * @author Administrator
     *
     */
    public class PrintWriterDemo {
        public static void main(String[] args) throws FileNotFoundException {
            PrintWriter pw = new PrintWriter(new File("c:/abc.txt"));
            pw.print("张三");
            pw.close();
        }
    
    }
    

    相关文章

      网友评论

          本文标题:JavaSE PrintWriterDemo

          本文链接:https://www.haomeiwen.com/subject/ybaekftx.html