#FUNCTION LOGIC
- function receives text through a File Descriptor (usually a txt file);
- the function reads nbytes (BUFFER_SIZE) of the text;
- nbytes are kept in a buffer;
- a new list node is created;
- the last node put in the list is found and it's pointer is now pointing to the new node;
- the read text inside the buffer is passed into the new node;
- the new node is now in the last position of the list, pointing to NULL;
- steps 3 to 7 are repeated until a "\n" is found;
- the text inside the list (stored in all the created nodes) is copied into a string up to "/n";
- the text after "\n", whoch has been red due to the BUFFER_SIZE, is put into a new node (clean node) and stored int the static variable;
- the string previously creaed is returned to the output and the program finishes - the 1st line is now printed;
- the program restarts, having the clean node as the head of the list (and beginning of the new line);
- everyting is repeated until the end of the text.