Almost there... one more EASY thing.
I've gotten it working just fine now, only I have one problem. If the binary value has any leading zeros, then it cuts them off because I convert it as an integer. Is there any EASY and SHORT way to add them back in, storing it as a string? I need it to have all 7 bits.
So... if the input is 'a' it typecasts so that it gets the ASCII code for it is 97, so the binary value is 110 0001. That works fine... I get 1100001 for 'a'.
But if the input is '0' for example... ASCII is 48, binary is 011 0000. It works fine but it chopps off the leading zero because it isn't a string... so what is the easiest way to get it to save 0110000 instead of 110000?
I didn't use your function.