I urgently need to import a csv file into memory, and process the data. I have done this with "int" only in the past and it has worked well, but need to get some strings into the process and have been struggling to resolve the problem. I need to break up the following line X 500 into the fields below.

The way I see it the fscanf should split where I have commas and slashes, but it does not the first string contains "BF,High,8,2003/01/01" and the rest is garbage. Could someone please point me in the right direction.

CSV File
BF,High,8,2003/01/01 00:00,2003/01/01 00:59,2003/01/01 07:59

Code
while( fscanf(fp, "%s,%s,%s,%d/%d/%d %d:%d,%d/%d/%d %d:%d,%d/%d/%d %d:%d",
incedent[il].catagory,
incedent[il].priority,
incedent[il].level,
&incedent[il].open_year,
&incedent[il].open_month,
&incedent[il].open_day,
&incedent[il].open_hour,
&incedent[il].open_minute,
&incedent[il].respond_year,
&incedent[il].respond_month,
&incedent[il].respond_day,
&incedent[il].respond_hour,
&incedent[il].respond_minute,
&incedent[il].resolve_year,
&incedent[il].resolve_month,
&incedent[il].resolve_day,
&incedent[il].resolve_hour,
&incedent[il].resolve_minute) != EOF )