+ 1
Its not some hard and fast rule though, but we do save class object data in binary files as it is the best way to store a class object directly.
When we use read or write, we do not need to worry about the position or writing each member seperately. We just cast the object to char* and write/read to/from the file. Thus, it is a better way to store data effectively.