import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;
import java.io.PrintWriter;
public class PrintWriterDemo {
/**
* @param args
* @throws FileNotFoundException
*/
public static void main(String[] args) throws FileNotFoundException {
File startLog = new File("writer.txt");
PrintWriter outWriter = new PrintWriter(new PrintStream(new FileOutputStream(startLog)));
outWriter.println("ssss");
outWriter.close();
}
}
阅读(805) | 评论(0) | 转发(0) |