How can I split a string by lines... For example

Line1
Line2
Line3



I want to split it into a list

so lines[1] = "line1"


see? So how could I do this?