Do you know the maximum line length?
If so, just call fgets() in a loop, and strstr() to look for your sub-string. If strstr() reports a hit, process the line properly, occasionally you might need...
Type: Posts; User: Malcolm McLean
Do you know the maximum line length?
If so, just call fgets() in a loop, and strstr() to look for your sub-string. If strstr() reports a hit, process the line properly, occasionally you might need...