I want to read a local txt file and read the text in this file. After that i want to split this whole text into Strings like in the example below .
Example : Lets say
I would suggest more general regexp:
text.split("(?m)^\\s*$");
In this case it would work correctly on any end-of-line convention, and also would treat the same empty and blank-space-only lines.