Co přesně ti nejde? Načítání ze souboru jsem ti radil už minule, když jsi řešil JTable. Porovnat dva stringy snad umíš...