"Very closely. Director Roman Polanski appears to have kept the story intact, even though he added a few scenes based on his own memories. Many of the scenes and, sometimes, the exact conversations in the book appear in the movie. However, there are a few obvious discrepancies. For example, the Dorota (Emilia Fox) character does not appear in the book. Also, Polanski seems to have taken some liberties with the sequence of events as they happened in the apartments where Szpilman (Adrien Brody) hid. To really make note of the differences and similarities between book and movie, it's suggested that you read the book. You won't be disappointed."