I going to feel like an idiot if someone posts a solution to this, but I've been searching for the last two hours with no luck. I have an input file that contains a series of bits, 8 bits per line. I need to read in each line and then store that value as a byte. So if I read in the string "01010010" in need to parse it and produce the number 82 and store is in a byte. I'll keep looking but any ideas would be appreciated.