Hello, everyone, the task is to either delete all the lines or not read them at all.
There are certain categories in which there are unwanted lines, how to implement so that the category "invit" in it is given the data "D", "F", "I", "Q", "B", you need to delete the lines with the data "Q" or do not read lines in this category with these lines.
The situation is such that if you delete all the lines from Q, the output file is not correct. How not to take this line for further manipulations