title: How to remove data from string builder
body: <p>Hi i all having a requirement to delete particular data from a <code>text</code> file. I have written some code to get my exact data to remove but now i am little bit confused in removing that particular data can any one help me.</p>
  
  <p>Initially this is my data in <code>text</code> file where i am storing to a <code>Stringbuilder</code></p>
  
  <pre><code>101 111111111 1111111111110150105A094101                                                      
  
  52201               1                   1         PPD1         111015111015   1111000020000001
  
  6241110000251                00000000011              1                     1 0111000020000001
  
  822000000100111000020000000000000000000000011                                  111000020000001
  
  52251               1                   1         PPD1         011015111015   1111000020000002
  
  6281110000251                00000000011              1                     1 0111000020000002
  
  822500000100111000020000000000010000000000001                                  111000020000002
  
  9000002000001000000020022200004000000000001000000000001                                       
  </code></pre>
  
  <p>Now by using certain code i am getting the data to delete <code>i.e</code> assume i would like to delete from <code>5 to 8</code> which exists. I am storing this to another <code>StringBuilder</code> as follows</p>
  
  <pre><code>52251               1                   1         PPD1         011015111015   1111000020000002
  
  6281110000251                00000000011              1                     1 0111000020000002
  
  822500000100111000020000000000010000000000001                                  111000020000002
  </code></pre>
  
  <p>I would like to remove this from the main <code>Stringbuilder</code> i am having. Is this the correct process or if any better way let me know</p>
  
  <p><img src="https://i.stack.imgur.com/ToX1a.jpg" alt="enter image description here"></p>