The attached vi should help you to solve your problem :
It uses an uninitialized shift register to store the concatenated incoming string chunks, then search for a LF char, and return either an empty line, when no LF was found, or the chars before LF. The excess chars belonging to the following string are stored in the shift register...
Hope this helps !
CC
Chilly Charly (aka CC)