import java.io.*;
FileOutputStream stream variable = new FileOutputStream(file specification); PrintWriter printer variable = new PrintWriter(stream variable);
PrintWriter
instance,
then instantiate one of the following patterns:
print writer.print(information to be printed); print writer.println(information to be printed);
print writer variable.flush(); file stream variable.close();