title: Writing Part/Block of File to another File
body: <p>Please Help: I would like to read one block from file inPath and write to another file outPath.
  I am using ReadLines method to read the File line by line and when reach at START_BLOCK, start writing to the output file and continue until you find the END_BLOCK.
  I know couple of other methods by copying the whole file into a variable and pick the block what I need. I can't use saving on a variable as my files are very big GB+
  The coding I have below copies the line at the "START_BLOCK" Can't really figure it out how to continue writing until the "END_BLOCK". Please suggest and thank you very much in advance.</p>
  
  <pre><code>    Dim inPath As String = "C:\temprm\myFile.txt"
      Dim outPath As String = "C:\temprm\myFileNew1.txt"
      Using sw As StreamWriter = File.CreateText(outPath)
  
          For Each line As String In File.ReadLines(inPath)
              If line.Contains("START_BLOCK") Then
                  sw.WriteLine(line)
                  '-------HOW DO I CONTINUE TO WRITE UNTIL "END_BLOCK"
              End If
          Next line
      End Using
  </code></pre>