actually, it's better to write one line at a time, with '\n' appended
after each.