What if length isn't expected? Maybe we should throw exception? Or maybe wrote some logs that file is broken. What do you think ?