Currently I\'m using something like :
String[]lines = textContent.split(System.getProperty(\"line.separator\"));
for(String tmpLine : lines){
//do somethi
You could use String.indexOf()/String.substring()
String separator = System.getProperty("line.separator");
int index = textContent.indexOf(separator);
while (index > 0)
{
int nextIndex = textContent.indexOf(separator, index + separator.length());
String line = textContent.substring(index + separator.length(), nextIndex);
// do something with line.
}