return empty if no lined is read or (current pos bigger than max line length and pos larger than end).