1. Once open a file into the variable "filetxt" generate a function to search the identifier: "Resultados de la optimizacion". 2. Now read and report the next 48 lines only
def Read(filetxt): while True: line = filetxt.readline() if "Resultados de la optimizacion" in line: break for i in range(48): print(filetxt.readline())