Brian
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!
"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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Great PowerShell script! Thanks for creating this so quickly!
ASKER