def readTBSListFile(tbsFile):
	"""
	Read the input enrichment result file ("to be summarized" file).
	Each line consists of a term ID, sorted from most important to least

	:param str tbsFile: Path of the enrichment result files
	:return: **tbsGsIDs** (*list*) – List of term IDs to be summarized
	"""
	tbsGsIDs=[]
	try:
		f=open(tbsFile, 'r')
		lines=f.readlines()
		for line in lines:
			tbsGsIDs.append(line.strip())
		f.close()
	except IOError:
		print("I/O error while reading a file to be summarized.")

	return tbsGsIDs