First, if the file gave the name of the person who did it, that would implicate them but not neccesarily be proof enough for Sony to "know" it.
Secondly, knowing that "Anonymous" did it doesn't mean they know who did it. The clue is in the word "anonymous".
"Asked whether it knew who had carried out the attacks, Sony responded with a single word: No."