How to split with a new black line

Hello friends,

I have a problem with an TXT file,

I need to make a division of the texts based on the new white lines between the texts. I leave a sample file and I hope you can help me

This is an example of what I need with out blank lines
Pruebatxt.txt (726 Bytes)

Please check if this gives you the result you want:

Split(yourFileText.Trim,Environment.Newline & Environment.Newline)


Hope the following sample helps you.

arrStr = System.Text.RegularExpressions.Regex.Split(yourString.Trim,"(?:\r?\n){2,}").Skip(1).ToArray() (2.8 KB)