Possible Duplicate:
what’s the differences between r and rb in fopen
I was designing a zip-unzip utility in C. The zipping and unzipping worked well if the input files were .c or .txt files. But if I gave any other file as input it did not unzip. I added the b flag when reading and writing files. Since then it has worked perfectly. What is the significance of b? I know that it is for binary read/write. Can someone please share the details of what happens at system level? I am working on Linux.