def read_flist(listpath, delimiter='|'):
  """read file list from file"""
  flists_flat = []
  lines = open(listpath, 'r').readlines()
  for line in lines:
    entry = line.rstrip().split(delimiter)
    flists_flat.append(entry)
  return flists_flat