takeLines

Returns the first n lines joined with a line feed. Fewer lines return the whole string.