Yes. You can output to file in append mode. In unix you can use ">>" symbol. But I don't thnik it's a good option to send output line by line using cursor and honestly speaking I don't know how to do it line-by-line using cursor. My solution will work with select/SP outputs.