How to Convert Text into Binary
If you want to know how to convert text into a series of binary digits, here is a diagram:
http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-11-92/5658.Binary.bmp
Note that this sort of system applies to all radices as a way of converting to them, with the divisor "2" changed to the value of the radix.
You can use this binary conversion methodology in various scenarios when using the following Microsoft technologies:
- Small Basic
- Visual Basic
- C++
- C#
The following sample uses are created with Small Basic:
- Small Basic: Text to Binary Converter by Amir CPS
- Binary Converter with a Base 64 Conversion by WhTurner33
Credits
This was written (and the diagram created) by Liam McSherry in this Small Basic forum thread.
Other Languages