//File: BufferedHello.java import java.io.*; import CSLib.*; class BufferedHello { public static void main (String [] args) throws IOException { InputBox in = new InputBox(); in.setPrompt ("What's the name of your file? "); String fileName = in.readString(); //FileWriters convert char streams to byte streams FileWriter fr = new FileWriter (fileName); BufferedWriter buffer = new BufferedWriter (fr); //PrintWriters convert Strings to char streams PrintWriter outFile = new PrintWriter (buffer); outFile.println ("Hi there gang!!. Ain't this great?"); outFile.close(); } }