Hey,
Im writing a small program whicht pings a host, outputs the result into a txtfile and then undertakes action.
but how can i check if the line (timed out for example) exists in that file?
any help is appreciated
Printable View
Hey,
Im writing a small program whicht pings a host, outputs the result into a txtfile and then undertakes action.
but how can i check if the line (timed out for example) exists in that file?
any help is appreciated
Read in the file, line per line, and scan for keywords.
Look for fopen() and fscanf() online.