replace codebook.rtf with a text file