problem with C# when reading from serial
<p>i have a problem with a serial port reader in C#.</p>

<p>if i send 5555 through the serial port the program prints out 555.
here is the program</p>

<pre><code>public static void Main()
{
    byte[] buffer = new byte[256];
    string buff;
    using (SerialPort sp = new SerialPort("COM2", 6200))
    {
        sp.Open();
        //read directly
        sp.Read(buffer, 0, (int)buffer.Length);
        //read using a Stream
        sp.BaseStream.Read(buffer, 0, (int)buffer.Length);
        string sir = System.Text.Encoding.Default.GetString(buffer);
        Console.WriteLine(sir);
</code></pre>
