simple C library for reading text files line by line