writing data in binary form
Posted on 2013-09-04
In my large C++ application, I see often times previous developers have written data in binary form. So basically when they have to read they convert it to ASCII form as they know the format of the file, (example 1st 4 bytes are uint32_t, next byte is char etc....)
I am trying to understand what is the benefit of writing in binary form and then when it comes to reading, reconstruct the original human readable form?
Is there any benefit like size reduction by saving in binary form, or faster write processing etc or maybe something else?
P.S: Again these files are only configuration related file like metadata of a file etc...