I am trying to use fscanf to read a file. When fscanf hits a newline I would like it to do one thing and when it hits a space I would like to do something else. Is this hopefully possible?
char nam[100];
while (fscanf(pFile, "%s", nam) !=EOF)
{
if(space)
//do something
if(newline)
//do something
}