股票报价的WebService之一(2) // Create a StreamReader object and pass the Yahoo Server stream as a parameter
StreamReader strm = new StreamReader(webresp.GetResponseStream(), Encoding.ASCII);
// Read a single line from the stream (from the server) // We read only a single line, since the Yahoo server returns all the // information needed by us in just one line.
ret= strm.ReadLine();
// Close the stream to the server and free the resources.