def getFile(fileName):
	""" Returns the file based on the fileName param. 
		Exit from script if something goes wrong. """
	try:
		file = open(fileName, "r")
	except IOError:
		print("Unable to open the file: " + fileName)
		exit()
	else:
		return file