def load_txt(path):
    """
  Read all lines from a text file.

  Parameters
  ----------
  path : str
    Path to the text file.

  Returns
  -------
  list
    A list of lines.
  """
    with open(path, 'r') as f:
        lines = f.read().splitlines()
    return lines
