
The myindex variable is initially declared to zero because it will be utilized as our
counter to determine when we receive the Google response line with our total
hits number. Since Google responses are sent in a series of text lines, we must
loop through each individually until the desired line is in the memory buffer.
The While loop is utilized to loop through the response strings, and once the
“about” string is identified, it sets the value of myindex to a number greater than
one, thereby causing the loop to break. Lastly, the socket is closed.
The last section of this script is Section 5.The first line of code utilizes the
index ascertained in Section ...