Ok figured it out. It can be done using the scanf function. You define a character array and then within the scanf function you use the following format %array length[^delimit] and you dont use a pointer sign in front of the char array name.
For example above scanf function would be:
sscanf(line,"%4d-%2d-%2d,%2d:%2d,%3[^,],%30[^,],%1[^,],%d,%d,%d", &NYear, &NMonth, &NDay, &NHour, &NMinute, Nasset, Nname, Nvalue, &Nactual, &Nforcast, &Nprevious);