This is my code for my double loop...
if(fp != NULL)
while(fgets(str, sizeof(str), fp) != NULL)
while((pch=strtok(first ? str: NULL, ",")) != NULL)
/*---Here is where I want to insert my line of code---*/
The contents of my text file look similar to this
At this point, I'm only interested in the second column of the data (the network).
Is there a line that I can insert that will ... If(network=valueA) then perform action A,
Else If (network = valueB) Then perform action B?