string comparing in C

Hello,
I need help with a program I'm trying to write for my moms science class, what it has to do is accept a user inputed string and search for it in a text file (file contains all the elements)

The file looks like:

H Hydrogen 1
He Helium 2
Li Lithium 3
Be Beryllium 4
...

If the input string (element abbv.) is found printf the element and atomic number
(not homework)