> printf("%c", line_buffer[0]);
Perhaps you meant

printf("%s", line_buffer);

You only get the first letter of each line, because that's all you asked for.