def grabFile(self, filename):
		'''Return the contents of a file as a list of strings.
		New line characters are removed.
		'''
		if not self.filecache.has_key(filename):
			f = open(filename, "r")
			self.filecache[filename] = string.split(f.read(), '\n')
			f.close()
		return self.filecache[filename]
Return the contents of a file as a list of strings.
		New line characters are removed.
		
recipes/Python/52300_Cache_file_contents_speed/recipe-52300.py