I already submitted an inquiry about using FileBitReader, but I am just generally unclear about how we should use FileBitReader and FileBitWriter.
For FileBitReader, should we just use readByte to get each character in byte form as an ASCII code value?
For FileBitWriter, how should we write the strings of 0's and 1's that represent the characters? Say that the Huffman encoding of some letter is 00110, how would I utilize FileBitWriter to send this bit sequence to the output file? Should I do write each bit one at a time? Also, the comments in the class mention something about an int storing bit sequences. How does that work?
Please enlighten me, if you can. |