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