I tried to modify the program to look for and eof but it couldnt work....
my code looks like below:
input_file.getline(number,256,',');//number is an array of characters... i.e char number
cout<<"debug:\n";}}/*note that after the debug word only one number is supposed to be printed but instead I get:
3 -----> expecting a debug word between 3 and 4
6 -----> something wrong here, expecting a debug word between 6,7
9 --->clearly something wrong expecting a word between 9,0
I can't figure out what i am doing wrong, can anyone help me debug my code and a better way of doing what i am trying to do.