Login or sign up Lost password?
Login or sign up
This way, that variable (call it "goodline") will contain the number of the last line on which anything was successfully processed.