Im trying convert a text string to ascii binary

such as A =01000001
test =01110100011001010111001101110100

here is an example
http://www.roubaixinteractive.com/Pl...ry_To_Text.asp


I understand that im goign to have to do a for each loop for each char C in string x

but im not sure how to get the binary ascii char out of it


i know this is probably pretty simple but im just drawing a blank