美文网首页
JavaSE PrintStreamDemo

JavaSE PrintStreamDemo

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

    相关文章

      网友评论

          本文标题:JavaSE PrintStreamDemo

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