A
andy
Hi,
What are the annoying ^M put at newlines when a text file is used in
binary mode?
I've written a file compression / decompression program using huffman
encodings. The algorithms work- On an input text file, It reads &
encodes and the file produced can be decoded back into the original.
Then I modified it to read any generic file to compress by reading in
binary mode. It compresses and decompresses well, except that ^M comes
after each line in the decompressed version.
Any suggestions?
Thanks,
andy
What are the annoying ^M put at newlines when a text file is used in
binary mode?
I've written a file compression / decompression program using huffman
encodings. The algorithms work- On an input text file, It reads &
encodes and the file produced can be decoded back into the original.
Then I modified it to read any generic file to compress by reading in
binary mode. It compresses and decompresses well, except that ^M comes
after each line in the decompressed version.
Any suggestions?
Thanks,
andy