Link to home
Start Free TrialLog in
Avatar of Brian
BrianFlag for United States of America

asked on

Need to grab specific lines in a text file and output them using VB.net or C#

I want to create a VB.net or C# program that goes thru a text file, and when it finds this text...

"region": "us-east",

on a line, it will output the next line to a new file.  When the program finishes running, all lines that were found after that text will have been added to the new file.

This is something I know I could search online and figure out, but it would take me time to work it out and I need to pull this information as soon as possible. If someone can show me code that will accomplish this, I would greatly appreciate it!
ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Brian

ASKER

That works great... thanks for your help, ste5an!
Avatar of Brian

ASKER

Great PowerShell script! Thanks for creating this so quickly!