I'm trying to encode a file that is suppose to be read from stdin and a code file that has char value and it's corresponding binary encoding. I was wondering how would I read the data in and store it into a char array and then compare it to the huffman code?