Deleting Lines From a Specified Character until the character reappears
===

The code I'm writing currently is taking a file with a bunch of information about IP addresses and their hop info and deleting all the unwanted information. Currently, I want to delete all the lines from a specified character (in this case, it is a dash "-") until the specified character appears again. The specified character lines should also be deleted as well. 

From what I've read, you use BufferedReader to read the file in a line at a time, but I can't figure out how to get the program to delete the lines of code between the characters. For example, the first line is all "-"'s and the next 8 lines are. Then after, it contains all the info I want, and then the last 6 are the same way as the start. 

What steps do I take to get my code to go from here? 

Thanks