For a more complete reference and discussion see Applied Cryptography by Schneier (ISBN 0-471-11709-9).
CBC (cipher block chaining) is especially suitable for encrypting files where the security is increased over ECB significantly.