def readLines(file, map=lambda line: line.strip()):
	"""
		Read and return a file as a list of files. Optionally, @map argument can be set to process the lines.
	"""
	# Read file line by line.
	results = []
	with open(file, 'r') as infile:
		for line in infile:
			results.append(map(line))

	return results