i have written a program which dloads data from a website and saves it to a text file. now a problem is i need to have that data on seprate line and the text file has a box like seprator at end of each line

how do i make my program identify the box as a end of line and put the data on seprate line

im attaching the output text file here with the post