String.Explode

Is their any way to explode lines, tried using

[lua]string.Explode(contents, "
")[/lua]

Contents is a valid string, and the explode just returns a table with a one empty value

The separator is the first argument in string.Explode(), so it should be:

[lua]
string.Explode("
", “FirstLine
SecondLine”) – will return { “FirstLine”, “SecondLine” }
[/lua]

Thanks