code: public static void write2File(final Reader reader, final Writer writer) throws IOException
  	{
  		int byt;
  		while ((byt = reader.read()) != -1)
  		{
  			writer.write(byt);
  		}
  	}
docs: The Method write2File() reads from an opened Reader and writes it to the opened Writer.
  
  @param reader
  The opened Reader.
  @param writer
  The opened Writer.
  @throws IOException
  Signals that an I/O exception has occurred.