How do I print to a file?
Created Jul 31, 2005
John Zukowski Typically, you would create a FileOutputStream and pass it to the PrintStream constructor. Starting with 5.0, you can pass the File or String name for file directory to the PrintStream constructor.