Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I put 'end of text' (ETX, ASCII 3) in a string?

Tags:

string

c#

ascii

I need to send a string over TPC/IP, and receiving end will listen for a string and read to a terminator which is ASCII 3. How can I put this in plain text into a textboks?

like image 585
erikric Avatar asked Dec 13 '10 13:12

erikric


1 Answers

As Dimitrov said, do something like

textarea.Text += (Char) 3;

or

String text = textarea.Text + (Char) 3;
like image 164
Albireo Avatar answered Oct 13 '22 00:10

Albireo