- Read every hex 85, 1F, etc
- Parse every hex to covert it to char
Dim c as char
c = (char)int.Parse(hex, System.Globalization.NumberStyles.HexNumber)
- you can add 'if' statement to escape 85 and replace it with '\r\n'
Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
Here's a VB.NET version of the code above (this is a VB.NET forum :) )
Dim c As Char
c = CChar(CStr(Integer.Parse(Hex, System.Globalization.NumberStyles.HexNumber)))
and instead of '\r\n', use Environment.NewLine
Teme64
Veteran Poster
1,031 posts since Aug 2008
Reputation Points: 218
Solved Threads: 203
Thanks Teme, so much, I tried to convert my C# knowledge to VB.NET but seems it doesn't work :D
Thank you so much really..
Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276