eiSecure: The following code will work with single instances of the ~BEGIN and ~END tags, but it doesn't work with multiple instances (but you should be able to add it in if you play around with it for a bit).
VB Code:
  1. Dim sFile As String
  2. Dim saFile() As String
  3. Dim strText As String
  4.  
  5. Open "MyFile.txt" For Input As #1
  6. sFile = Input(LOF(1), 1)
  7. Close #1
  8.  
  9. saFile = Split(sFile, vbCrLf)
  10.  
  11. For y = 0 To UBound(saFile)
  12.     If Trim$(saFile(y)) = "~BEGIN" Then
  13.         For x = y To UBound(saFile)
  14.             If Trim$(saFile(x)) = "~END" Then
  15.                 For Z = y + 1 To x - 1
  16.                     strText = strText & saFile(Z) & vbCrLf
  17.                 Next Z
  18.                 strText = strText & vbCrLf
  19.             End If
  20.         Next x
  21.     End If
  22. Next y
  23.  
  24. Text1 = strText