Create code book file