code: def read_discrete_trajectory(filename):
      
      with open(filename, "r") as f:
          lines=f.read()
          dtraj=np.fromstring(lines, dtype=int, sep="\n")
          return dtraj
docs: Read discrete trajectory from ascii file.
  
      The ascii file containing a single column with integer entries is
      read into an array of integers.
  
      Parameters
      ----------
      filename : str
          The filename of the discrete state trajectory file.
          The filename can either contain the full or the
          relative path to the file.
  
      Returns
      -------
      dtraj : (M, ) ndarray
          Discrete state trajectory.