import json


def get_creds(file):
    """
    Loads simple json file stored elsewhere with credentials.
    See the sample_creds.json folder for the expected format.

    :param file:  json file containing key/value cres

    :return:
        client_id, client_secret, user_agent for Reddit api
    """

    file = "E:/creds"
    with open(file, 'r') as fin:
        creds = json.load(fin)

    return creds['client_id'], creds['client_secret'], creds['user_agent']