Problem solve Get help with specific problems with your technologies, process and projects.

Manipulating text through VB.NET

I am manipulating a text document through VB.NET, where I enter and remove text based on conditions. For one of the "situations," if a string matches my condition, I need to remove that line of data, the line ABOVE it and continue to remove data until it matches another condition. I have tried 'Do while' and 'Do until loops,' and it is not working properly. I cannot get the program to remove the line above the specific string... Any suggestions?
Put your data into a reader and separate it into lines in a collection or array list. Then you should be able to easily manipulate the text on a line by line basis.

Dig Deeper on ASP.NET development best practices

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.