You could read the line until you reach '\0' with a while loop

Code:
while(line[index] != '/0')
and just read the line through.