Read stream line-by-line, do asynchronous operation and write stream line-by-line in order.