HI i am trying to write back a compressed string (compression was done using huffman encoding) back to a file.I am using an unsigned char as a buffer and getting each character in my string,getting its encoded value and setting my bits to the encoded value.If my buffer is full i flush it.The problem is i have writen my code and it does not work.My text editor wont even recognise the file that is written to.