Here is my dilemma, I have a snippet of code that I have written to extract data from a file and print it to the screen. It works well.

But now I want to only display lines of the file based on...