Binary file takes every thing as it exists like if ur putting an integer in binary file it will store in 4 bytes , and if in txt file , it will take each number as one character ,
example
if u store 123456 in binary file than it will take 4 bytes
while if u put it in txt file than it uses 6 characters