// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; using System.IO; using System.Net.Sockets; public class NClient { public static void Main(string[] args) { using(TcpClient cli = new TcpClient("localhost", 1234)) { using(StreamWriter sw = new StreamWriter(cli.GetStream())) { for(int i = 0; i < 10000000; i++) { sw.WriteLine("Dette er en test"); } } } } }