Prototype code for Java file writer.