If I want to read my file line by line and when it hits a certain value from that point it should start deleting the lines until the tag ends.
Just curious will my code actually work at the moment or not because it goes through so many times then goes straight back to the variable declarations at the start of the method and never hits the console print line.
I know it's possible to do I just can't remember how
if <environment id = '
test'>
then delete that line
continue to delete lines
until </environment> is met
but also delete </environment>