def readFile(self, theFile): with open (theFile, 'r') as fileObj: fileContents = fileObj.read().strip() return fileContents