def write_dict_to_table(data_dict, file_name, sep='\t'):
    """
    Basic function for writing the key, value pairs into a file with a specified separator
    :param data_dict: A dictionary object
    :param file_name: Path to a file for the dictionary to be written to
    :param sep: The separator to use. Tabs by default
    :return: None
    """
    data_string = ''
    for key in sorted(data_dict):
        data_string += sep.join([str(key), str(data_dict[key])]) + '\n'
    with open(file_name, 'w') as data_out:
        data_out.write(data_string)
    return
