def read_file(path)
      result = nil
      File.open(path, 'rb', encoding: 'UTF-8') { |f| result = f.read }
      result
    end
def read_file(path)
      result = nil
      File.open(path, 'rb', encoding: 'UTF-8') { |f| result = f.read }
      result
    end
Return the contents of the file at the given path.
 The file is read in the 'rb' mode and UTF-8 encoding.

 @param path [String] Path to the file, absolute or relative to the working directory.
 @return [String] file contents