Works to an extent but then it becomes garbled and I get access violation errorsCode:void get_numbers(char (*data_array)[2], int& num_amount, ifstream& fin){ int num; //used for temporary storage of a number obtained through the input stream int index = 1; //this is to be used to begin storing data into data_array[1] below char comma_discard; //used to disregard commas in the code file clrscr(); fin >> num; //get first data item while (!fin.eof()){ //while the eof marker has not yet been read *(*(data_array + index)) = num; cout << int(*(*(data_array + index))) << " "; getch(); num_amount++; index++; fin.get(comma_discard); //"eats" the commas after the integer values in the code file fin >> num; //get next data item } getch(); } //end void get_numbers