print output line by line, close #4