1 / 3
Sep 2004
4 years later

using System;
using System.IO;
namespace test
{
    class Program
    {
        static void Main(string[] args)
        {
            StreamWriter outbuff = new StreamWriter(Console.OpenStandardOutput());
            byte[] buf = new byte[300];
            int read = Console.OpenStandardInput().Read(buf, 0, 300),idx=0;
            char t;
            while (true)
            {
                t = (char)buf[idx];
                if (t == '4' && buf[idx + 1] == '2') break;
                outbuff.Write(t);
                idx++;
            }
            outbuff.Flush();
        }
    }
}

może stosujesz w swoim programie jakieś sztuczki, które Twój kompilator akceptuje, a spojowski już nie?