0

Using the following code:

public byte[] dxfData;
int dxfpointer;
byte newbyte;

StringBuilder layerName = new StringBuilder();

newbyte = dxfData[dxfpointer];
while (newbyte != 0x0d) //stops at a CR
{
    layerName.Append(newbyte);
    dxfpointer++;
    newbyte = dxfData[dxfpointer];
}
string newstring = layerName.ToString();
label1.Text = newstring;

The label shows the numbers for the ASCII letters
that were picked up from the ASCII dxf file.
The text that was loaded to the SringBuilder
string (layerName) was BORDER.
What shows on the form "label1" is 667982686982.
How can I get the output to show the ASCII text
not the numbers???
Alan

Edited by Ezzaral: Added code tags. Please use them to format any code that you post.

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by Momerath
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.