need help system.applicationexception

at search.Test.Main(String[] args) in C:Documents and SettingsAlexMy DocumentsSharpDevelop Projectssearchsearch.ConvertedToVBNetProgram.vb:line 11

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

public class Test
public static void Main (string[] args)
if (args == null || args.Length == 0)
throw new ApplicationException ("");
WebClient client = new WebClient ();

// Add a user agent header in case the
// requested URI contains a query.

client.Headers.Add ("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");

Stream data = client.OpenRead (args[0]);
StreamReader reader = new StreamReader (data);
string s = reader.ReadToEnd ();
Console.WriteLine (s);
data.Close ();
reader.Close ();

whats wrong with this code
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!