title: Add header in text file
body: <p>The purpose in the below is to add header in a single big file and to generate a pages divided by the header.</p>
  
  <p>The header need to be added every 7 lines with the option to increment the number in the Page. Means every time one header is been added the number in the page will increase.</p>
  
  <p>Header</p>
  
  <pre><code>----------------------------------------------------
   Code       10       20       30       40     Page 1
  ----------------------------------------------------
  </code></pre>
  
  <p>Input file</p>
  
  <pre><code> 2917        2        0        0        0  =      2
   2916        0        0        0        5  =      5
   2915        2        0        3        0  =      5
   2914        2        2        1        0  =      5
   2912        0        2        0        0  =      2
   2911        0        2        0        0  =      2
   2910        3        0        0        0  =      3
   2917        2        0        0        0  =      2
   2916        0        0        0        5  =      5
   2915        2        0        3        0  =      5
   2914        2        2        1        0  =      5
   2912        0        2        0        0  =      2
   2911        0        2        0        0  =      2
   2910        3        0        0        0  =      3
   2917        2        0        0        0  =      2
   2916        0        0        0        5  =      5
   2915        2        0        3        0  =      5
   2914        2        2        1        0  =      5
   2912        0        2        0        0  =      2
   2911        0        2        0        0  =      2
   2910        3        0        0        0  =      3
   2917        2        0        0        0  =      2
   2916        0        0        0        5  =      5
   2915        2        0        3        0  =      5
   2914        2        2        1        0  =      5
   2912        0        2        0        0  =      2
   2911        0        2        0        0  =      2
   2910        3        0        0        0  =      3
   2917        2        0        0        0  =      2
   2916        0        0        0        5  =      5
   2915        2        0        3        0  =      5
   2914        2        2        1        0  =      5
   2912        0        2        0        0  =      2
   2911        0        2        0        0  =      2
   2910        3        0        0        0  =      3
  </code></pre>
  
  <p>Output file</p>
  
  <pre><code> Code       10       20       30       40     Page 1
  ----------------------------------------------------
   2917        2        0        0        0  =      2
   2916        0        0        0        5  =      5
   2915        2        0        3        0  =      5
   2914        2        2        1        0  =      5
   2912        0        2        0        0  =      2
   2911        0        2        0        0  =      2
   2910        3        0        0        0  =      3
  ----------------------------------------------------
  Code       10       20       30       40     Page 2
  ----------------------------------------------------
   2917        2        0        0        0  =      2
   2916        0        0        0        5  =      5
   2915        2        0        3        0  =      5
   2914        2        2        1        0  =      5
   2912        0        2        0        0  =      2
   2911        0        2        0        0  =      2
   2910        3        0        0        0  =      3
  ----------------------------------------------------
  Code       10       20       30       40     Page 3
  ----------------------------------------------------
   2917        2        0        0        0  =      2
   2916        0        0        0        5  =      5
   2915        2        0        3        0  =      5
   2914        2        2        1        0  =      5
   2912        0        2        0        0  =      2
   2911        0        2        0        0  =      2
   2910        3        0        0        0  =      3
  ----------------------------------------------------
  Code       10       20       30       40     Page 4
  ----------------------------------------------------
   2917        2        0        0        0  =      2
   2916        0        0        0        5  =      5
   2915        2        0        3        0  =      5
   2914        2        2        1        0  =      5
   2912        0        2        0        0  =      2
   2911        0        2        0        0  =      2
   2910        3        0        0        0  =      3
  ----------------------------------------------------
  Code       10       20       30       40      Page 5
  ----------------------------------------------------
   2917        2        0        0        0  =      2
   2916        0        0        0        5  =      5
   2915        2        0        3        0  =      5
   2914        2        2        1        0  =      5
   2912        0        2        0        0  =      2
   2911        0        2        0        0  =      2
   2910        3        0        0        0  =      3
  ----------------------------------------------------
  </code></pre>