I am trying to make my custom class which read/write in binary files. I don\'t want to use any external sources. But because I am trying to make it pretty