| SimpleWriter.java |
package futils;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
public class SimpleWriter extends PrintWriter {
public SimpleWriter() throws IOException {
super(
new FileWriter(
Futil.getWriteFile("select input file")));
}
public static void main(String args[]) {
try {
SimpleWriter sw = new SimpleWriter();
sw.println("This is a writer that lets the user output to a GUI based file");
sw.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}