TCnSerialPort.ReadTo(String) Method
Reads a string up to the specified value in the input buffer.
public function ReadTo(Value: String): String;
Parameters
- Value
- Type: String
A value that indicates where the read operation stops.
Return Value
Type: String
The contents of the input buffer up to the specified value.
This method reads a string up to the specified value. While the returned string does not include the value, the value is removed from the input buffer.