in reply to separating every set of textline


Use $/. Very simple.

Cheers,
Rupesh.