Extract names section into a file