Build a terminal-based system to manage student records using file handling and dictionaries.