def readfile(file_dir):
    """ readfile(file_dir:str)

    Returns the content of a file in an array.
    """
    f = open(file_dir)
    content = [line.rstrip('\n') for line in f]
    return content