Convert ASCII value to a Binary value
I want to convert an ASCII value to a Binary value using C# language.Pls reply soon.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
AlanPosted Aug 16, 2007, 4:17 AM
If you're asking how to display a byte in binary notation, then this should do it:
Dim b As Byte = 32 ' or whatever
Dim s As String = Convert.ToString(b, 2)
Console.WriteLine(s) ' 100000