How do you search for a string in a system? I am trying to make a program that does a system ping then returns to you only a portion of the results such as only the amount of packets loss. Any ideas on how to do that? What I had so far was to transfer the results to a text file then read the text file. But after that I am not sure how to extract a certain line from those results. Any help would be greatly appreciated.