def read(fname):
    """Read a requirements file

    Args:
        fname (str): The name of the file

    Returns:
        dict: The requirements dictionary
    """

    # Load the file
    print(f"Reading Requirements from {fname}")
    dictionary = {}
    with open(fname, "r") as f:
        # Each line contains Area: CourseNum, CourseNum
        # Put this into a dictionary
        for line in f:
            line = line.strip().split(":")
            area = line[0]
            course = [int(x) for x in line[1].split(",")]
            dictionary[area] = course
    return dictionary