In my VB Application i need to read null value....
Because after of null i get data ..... But because of null my data has been terminated ... Now how should i read data including null.......
Thanks in ADV
A null is nothing but a byte value of 0. So, scan your buffer after the read and look for a 0. There's your null.
Unless, of course, youre dealing with Unicode strings, in which case, it's two 0 values in a row.
Please see my comment to the question. With the port, you transmit bytes, nothing else. It should make the answer apparent…—SA
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)