Hi,
When i write using StreamWriter.WriteLine, it adds CRLF to the string and sends it (to the SerialPort).
When i read a string in the same C# program using StreamReader.ReadLine with data like below, it only reads upto the first CR represented by the first (char)13.ToString(), not the CRLF that is represented by the (char)13.ToString() + (char)10.ToString() combination.
string messageHeader = ((char)2).ToString() +
@"1H|\^&|REMISOL|P|1|20010212161505SS" +
((char)13).ToString() +
((char)3).ToString() +
"E5" +
((char)13).ToString() +
((char)10).ToString();
How do i make it read upto the CRLF block, which is right at the end, and not stop at the CR ?
Thanks.