Code book attack/Definition

Attacking a block cipher by creating a code book, collecting plaintext/ciphertext pairs.