A register file is a collection of registers in a CPU that stores temporary data and instructions for rapid access during processing.