def readFileContent(filename, mode):
    """A generic function to read the content of a file.
       Args:
         filename: The full filename
         mode: Python's file opening mode
       Return:
         The content
    """
    file = open(filename, mode)
    content = file.read()
    file.close()
    return content