def file_to_set(file_name):
    """Read a file and convert each line to set of items
    
    Args:
        file_name (str): name of file
    
    Returns:
        results (set): set of words from file
    """
    results = set()
    with open(file_name, 'rt') as f:
        for line in f:
            results.add(line.replace('\n', ''))
    return results