Currently I'm writing just a simple program in python which allows for users to add and remove coordinates (as well as view them) from the game minecraft. Also allows you to enter a title.
Anyway, what I need help with is the remove feature. I want to search the text file for a specific string, so for example say "Oil Pool" is the string I want to search for. How would I do this?
After I search for the string I want to remove the next 6 lines (Including the string I searched for.)
This is a picture of what an entry in the text file looks like. So if I wanted to remove this entry, I'd want to search for "Huge Oil Pool" Then remove that, as well as the next 6 lines.
Thanks
Paul