def read_deck(deck_file):
    """ (file open for reading) -> list of int
    
    Read and return the numbers that are in the file, in the order in which 
    they appear in the file.
    
    """
    
    list_of_int = []
    
    # Store the entire deck_file into the lst as the whole string.
    lst = deck_file.read()
    
    # Introduce a digit accumulator.
    digit_acc = ''
    
    # Check every character in the lst. If it is a digit, put it into the 
    # digit accumulator. If the next character that follows the it is a digit,
    # add it to the digit accumulator too. Otherwise, append the digit 
    # accumulator to the list_of_int.
    for i in lst:
        if i.isdigit():
            digit_acc += i
        else:
            if digit_acc != '':
                list_of_int.append(int(digit_acc))
                digit_acc = ''
    return list_of_int