DOS had a command 'fc',which was used to compare the files in binary mode,I am a bit stuck with the concept of comparing the files.Why do we compare the files in binary mode?And how does fb command works.Thanks

link|improve this question

1  
ERROR Unbelievable nobody corrected you. It is FC as in File Compare. Your question should be what the heck or what specifically, is comparing files in text mode! Comparing in binary mode should be pretty obvious. It compares the 1s and 0s.. so would see if the file is identical. Text mode might miss out differences involving certain characters, those that are perhaps, non printable non graphical, something like that. If any of them are in the file. – barlop Feb 24 at 18:38
@barlop: So, by using fb command, we can also compare images. That seems good. – Startup Crazy Feb 26 at 6:27
1  
YES BUT IT IS FC MAN "FILE COMPARE" FC. Why do you keep typing fb do you use facebook every single second of your life? – barlop Feb 26 at 10:40
I am really sorry I am a facebook addict. – Startup Crazy Feb 26 at 11:34
1  
Typos happen, don't worry about it. And few users on this site are as rude about it as @barlop. He probably should have edited your question himself if he was sure it's a typo. – Daniel Beck Feb 26 at 11:53
show 1 more comment
feedback

1 Answer

up vote 3 down vote accepted

You compare files in binary mode when the files are not text files with well-known end-of-line terminators or line-separators. An example might be some binary data files. In that case you might want to see the offset and hexadecimal values of differences rather than display some before and after versions of text.

See this question and this list

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.