I am trying to out some specific lines plus an extra empty line at the end in a text file. The initial input was a text file and a vector input that has the line numbers of the lines that I am supposed to take out from the input text. for example-
inputs file is in format
and vector=[2 3]
the output will be the lines representing the vector number which is
the last line is gonna be empty. How to do this?