Details on lions Animal

How do I get this program to only read specific sections of the animalsNew.txt. For example, I have set up several case statements. One option is to select lion, if that option is selected, I want the program to only read the section of the file that provides details on lions. Right now, the program that I have reads the entire file.

Details on lions
Animal – Lion
Name: Leo
Age: 5
*Health concerns: Cut on left front paw
Feeding schedule: Twice daily

Details on tigers
Animal – Tiger
Name: Maj
Age: 15
Health concerns: None
Feeding schedule: 3x daily

Details on bears
Animal – Bear
Name: Baloo
Age: 1
Health concerns: None
*Feeding schedule: None on record

Details on giraffes
Animal – Giraffe
Name: Spots
Age: 12
Health concerns: None
Feeding schedule: Grazing

"Looking for a Similar Assignment? Order now and Get 10% Discount! Use Code "Newclient"