In the instruction, they mentioned about an empty file and a file w/ length 1. I assume that when these two cases are encountered, it's best to leave the files untouched. yes?
also, if in some cases, we're for certain that the compressed file will be larger than the original (for example, using my program, any file that is 4 bytes or less will result in a larger file after compression since i use the first 4 bytes of my compressed file to store the total length of the original files as my approach to deal w/ the EOF problem), then is it a better idea to leave these files untouched as well? |