title: VBScript - how to append new line after line specified
body: <p>I need to edit some configuration file by appending new line to existing file, but not at the end of the file but somewhere in the middle instead (at the end of particular section)</p>
  
  <pre><code># section 1 description
  foo1 = bar1
  foo2 = bar2
  
  # section 2 description
  foo3 = c:\bar.cfg
  my_new_line = which_needs_to_be_appended_here
  
  # section 3 description
  foo4 = bar4
  </code></pre>
  
  <p>Should I use search and replace like described here:</p>
  
  <p><a href="http://blogs.technet.com/b/heyscriptingguy/archive/2005/02/08/how-can-i-find-and-replace-text-in-a-text-file.aspx" rel="nofollow">http://blogs.technet.com/b/heyscriptingguy/archive/2005/02/08/how-can-i-find-and-replace-text-in-a-text-file.aspx</a></p>
  
  <p>to find last line of particular section and replace it with: itself + new line character + my_new_line = which_needs_to_be_appended?</p>
  
  <p>OR</p>
  
  <p>maybe there is a simpler or more clever method to do same thing (like finding the last line of particular section and use some method to put my new line right AFTER it)?</p>