Reputation: 2368
I am new to C#. While displaying text, C# prints every piece of text in a new line. But, I would like have all the pieces in the same line like Four Hundred Fifty Eight
; kindly refer to the image below.
What should I do ?
Upvotes: 3
Views: 30998
Reputation: 116
You could terminate the string forcibly, like this
Debug.Print("{0:X} \0", byteReceived[0]);
Then new .Print after that would be in the same line.
Upvotes: 0
Reputation: 8054
Assuming you're using Console.WriteLine()
, all you need to do is use Console.Write()
instead.
Upvotes: 4