def readFile(fileName):
    """Read all file lines to a list and rstrips the ending"""
    try:
        with open(fileName) as fd:
            content = fd.readlines()
        content = [x.rstrip() for x in content]
        return content
    except IOError:
        # File does not exist
        return []