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();
}
}
网友评论