This page presents the WebLinkListExample in CeeSharp, using the DotNet framework and SDK, on a WinXP-professional system. '''Installation''' * Download the following: ** Version 1.1 Redistributable framework (http://www.microsoft.com/downloads/details.aspx?familyid=262d25e3-f589-4842-8157-034d1e7cf3a3&displaylang=en) ** Version 1.1 .Net Framework SDK (http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4070-9f41-a333c6b9181d&DisplayLang=en) * Install the two downloads: ** Run dotnetfx.exe (the redistributable) ** Run setup.exe (the SDK) * Append the framework and SDK to the "Path" environment variable (I use the system properties dialog of "My Computer") C:\Program Files\Microsoft.NET\SDK\v1.1\Bin; C:\WINNT\Microsoft.NET\Framework\v1.1.4322 '''Source code''' * Create "Link''''''List.cs" using the editor of your choice. using System; using System.IO; using System.Net; using System.Text.Regular''''''Expressions; class My''''''App { const int bufsize = 1024; static void Main (string[] args) { if (args.Length < 0) { Console.Write''''''Line ("Error: Missing URL"); return; } Stream''''''Reader reader = null; try { Web''''''Request request = Web''''''Request.Create (args[0]); Web''''''Response response = request.Get''''''Response(); reader = new Stream''''''Reader (response.Get''''''Response''''''Stream()); string content = reader.Read''''''To''''''End(); Regex regex = new Regex ("href\\s*=\\s*\"([^\"]*)\"", Regex''''''Options.Ignore''''''Case); Match''''''Collection matches = regex.Matches (content); foreach (Match match in matches) Console.Write''''''Line (match.Groups[1]); } catch (IOException e) { Console.Write''''''Line (e.Message); } finally { if (reader != null) reader.Close (); } } } '''Building/Compiling''' * At a command prompt, in the directory containing the source, type the following: csc Link''''''List.cs '''Running''' * At a command prompt, type the following: Link''''''List http://www.google.com ---- Moved Perl note to LinkListInPerl