Hello coders
I have a text in a file in my server, it looks like this:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam congue quam
dui, id pulvinar lacus congue et. Cras ac sollicitudin leo. Vestibulum et
quam at dui imperdiet suscipit. Sed varius, lacus ac mattis finibus, lorem
odio volutpat nibh, iaculis elementum tellus enim in quam.
Duis eget magna et justo congue molestie. Pellentesque sit amet convallis
erat. Ut dapibus ante lobortis fringilla porttitor. Mauris tincidunt
tristique accumsan. Vivamus a vehicula ligula. Vivamus vestibulum tincidunt
quam ornare gravida.
Mauris suscipit ultrices viverra. Proin sed gravida nibh. Cum sociis natoque
penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aliquam
erat volutpat.
I can extract every element of the text and assign it to an array, in order to reconstrut the text lates as it is.
The only thing i can't extract is the line brake.
Is there a way to extract line brakes from the text and add them to my array?
Thank you in advance