Hi

I am trying to read data from a file. The file will consist of records as follows

Record
Name of person
Address
Age

Record
..
..
..

etc..

When I search for a record, by name, I would like to print record.
Im not sure how to accomplish this, I was wondering if someone can give me any suggestions.

Pseudo Code:
open file - check for errors
use strcmp to compare the name from input to the names in the file.
If it is equal, print info until you reach the word Record

Thanks.