summarizes a file