Please note that this is not a homework site. We won't do your homework for you. The purpose of homework is that you learn by doing. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.
We didn't see your attempts to solve this problem yourself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again.
It's a pretty easy program. If you can't write it then maybe it's best that you fail the course. If you've made an attempt then post your code and we can help you fix it.
Notice that you declare "word" in line...um let me count...8 (always post your code within code tags--click the "<>" format button to create the tags and paste your code in between them).
Then in line 11, while word is still empty, you save the "len", which, because word is empty, has a value of 0.
In line 13 you start looping through the file and reading each line and assigning it to "word". You never recalculate the value "len", so it is always 0. Because of that the
if (word.length() > 0 && word.at(0) == 'a') statement will always fail, and you will never print out a word.