"The Attic" is the twenty-fifth story included in the book Scary Stories to Tell in the Dark.
A man named Rupert and his dog live in the middle of the woods in a small cabin. One day Rupert goes hunting and leaves his dog at home to guard the cabin. When he comes home, he finds that the dog is gone. He searches for days but cannot find him. He concludes that the dog will eventually find its own way home, but then he hears something up in the attic and starts to walk up the stairs towards the door. Then Rupert screams.
Reason Rupert screamed
You would too if you stepped on a nail in your bare feet.