adding read_line.c and its test case