How to read a line, take action after it’s completed, go to the next line?

Please don’t create multiple topics for the same question @BrunoAmorim17
here is another topic @loginerror