def output_filename(name)
      path = File.expand_path(name, output_dir)
      output File.new(path, 'a+')
    end
def output_filename(name)
      path = File.expand_path(name, output_dir)
      output File.new(path, 'a+')
    end
Output results to the file named +name+.