code: public static void encodeFileToFile (@Nonnull final String infile, @Nonnull final File aFile) throws IOException
    {
      final String encoded = encodeFromFile (infile);
      try (final OutputStream out = FileHelper.getBufferedOutputStream (aFile))
      {
        // Strict, 7-bit output.
        out.write (encoded.getBytes (PREFERRED_ENCODING));
      }
    }
docs: Reads <code>infile</code> and encodes it to <code>outfile</code>.
  
  @param infile
  Input file
  @param aFile
  Output file
  @throws IOException
  if there is an error
  @since 2.2