Let's say I have a program that asks the user to input a word. How would I go about printing out the bit pattern of that word?

Edit: Nevermind. Solved my problem. Turns out I read my problem wrong. Was pretty easy after I figured that out.