using System;
using System.IO;
using System.Net;

public class SearchEngine
{
	public static String WebSearch(String subject)
	{
		String url = "http://www.websearch.com/search?topic=";

		//Submit Web request and get response
		url = String.Concat(url, subject);
		WebRequest req = WebRequest.Create(url);
		WebResponse result = req.GetResponse();

    //Load response stream into string
    StreamReader sr = new StreamReader(result.GetResponseStream());
    string outstring = sr.ReadToEnd();
    sr.Close();
    
    return outstring;
	}
}

