title: Splitting Binary files and adding data to each chunk?
body: <p>I have to work on a project in which I have to convert a binary file into a custom file format, which requires splitting the file adding some data to it and then repacking it into the new file.</p>
  
  <p>For Example</p>
  
  <p>I have a file of 1 MB and I have to split it into chunks of fixed length and then adding some data as a header to it.
  After that the entire file will be repackaged into a new file.</p>
  
  <p>Please any help will be appreciated.</p>