def read_text(file, num=False):
    """ Read from txt [file].
    If [num], then data is numerical data and will need to convert each
    string to an int.
    """
    with open(file,'r') as f:
        data = f.read().splitlines()
    if num:
        data = [int(i) for i in data]
    return data