It's been a while, but I believe %s cuts off at whitespace. To be honest, I don't like using fscanf () because you can easily run into data that overflows the buffer, and there isn't a good way to ...