final-b0ss / get-next-line Goto Github PK
View Code? Open in Web Editor NEWA function that returns a line read from a file descriptor. Calling this function in a loop will allow you to read the text available on a file descriptor one line at a time until the end of the text, no matter the size of either the text or one of its lines.