// 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.IO.Pipes; public class PClient { public static void Main(string[] args) { using(NamedPipeClientStream pipe = new NamedPipeClientStream("test")) { pipe.Connect(); using(StreamWriter sw = new StreamWriter(pipe)) { for(int i = 0; i < 10000000; i++) { sw.WriteLine("Dette er en test"); } } } } }