How to split text by newline code "/n"?

Thansk @SaranyaKishore
It works when the newline code is “\r\n”
But not work in the text use newline code “\n”