in reply to Re: print and extract the line
in thread print and extract the line

The read will work, but that won't solve OP's (ill-specced) problem.