I am working on a program which will have a data base similar to /etc/passwd or /etc/inittab. Are there any libraries which support these type of files? Specifically, I would like to be able to search for a record based on a certain key, and ask for the nth field in that record.