docs: def read_file_to_buffer(filename):
      """
      Reads a file to string buffer
      :param filename: 
      :return: 
      """
      f = open(filename, "r")
      buf = BytesIO(f.read())
      f.close()
      return buf