Open a Text file, Search for content, and writing out to a new text file Using VB.NET 2008 RRS feed

  • Question

  • I need to open a text file "test.txt" read the contents for strings begining with "MystartString" and ending with "MyEndString".  This string occurs numberous times in the file.  Each occurance of the string will be written out to a new file.  I would appreciate a sample code or link.  What challenges me is searching for the content.  Thanks
    • Moved by Cindy Meister MVP Thursday, October 29, 2009 8:03 AM not VSTO-related (From:Visual Studio Tools for Office)
    Wednesday, October 28, 2009 3:22 PM


  • Perhaps I was out of scote...thanks for the heads up Joao.  I found the solution to my question so this is no longer an open issue.

    • Marked as answer by SharePointBas Wednesday, October 28, 2009 4:33 PM
    Wednesday, October 28, 2009 4:33 PM

All replies