def get_association_time_txt (file_name):
    """Get the association time from a txt file"""
    with open (file_name) as file_obj:
        line_list = file_obj.readlines()
    
    t = int(line_list[0])/1000

    if len(line_list) != 1:
        e = int(line_list[1])
    else: e = 0
    return t, e