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 file contains-
abcdef ghijkl aededd ededed ededfe efefeef efefeff ...... ...... I want to split this text in to Strings
s1 = abcdef+"\n"+ghijkl; s2 = aededd+"\n"+ededed; s3 = ededfe+"\n"+efefeef+"\n"+efefeff; ........................ I mean I want to split text on empty line.
I do know how to read a file. I want help in splitting the text in to strings
StringBuilderthrough\nuntil have read blank line.string.split("\n\r")Find this answer here