code: public void write(Engine engine, Writer writer, int values, ScopeOfValues scope)
              throws IOException {
          write(engine, writer, values, scope, engine.getInputVariables());
      }
docs: Writes the engine into the given writer
  
  @param engine is the engine to export
  @param writer is the output where the engine will be written to
  @param values is the number of values to export
  @param scope indicates the scope of the values
  @throws IOException if any error occurs upon writing to the writer