// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; using System.IO; using System.Net; using System.Web; class MainClass { public static void Main(string[] args) { WebRequest wr = WebRequest.Create("http://localhost/dbproxy.asp?query=" + HttpUtility.UrlEncode("SELECT * FROM T1")); StreamReader sr = new StreamReader(wr.GetResponse().GetResponseStream()); string line; while((line = sr.ReadLine()) != null) { string[] fields = line.Split(",".ToCharArray()); for(int i = 0; i < fields.Length; i++) { Console.Write(" " + fields[i]); } Console.WriteLine(); } } }