I'd prefer readline - without even reading the question or your explanation, I (presumably) understand what your code snippet is doing from 'outfile', 'write', 'infile', 'readline' - you're writing a line (twice, I guess) from infile to outfile.
With 'next' I don't believe that meaning is so clear.