From owner-freebsd-questions Wed Mar 15 15:38:27 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.wcarey.com (mail.wcarey.com [209.181.61.113]) by hub.freebsd.org (Postfix) with ESMTP id B1C2D37BE86 for ; Wed, 15 Mar 2000 15:38:23 -0800 (PST) (envelope-from wcarey@wcarey.com) Received: from mail.wcarey.com (mail.wcarey.com [209.181.61.113]) by mail.wcarey.com (8.9.3/8.9.3) with ESMTP id PAA19720; Wed, 15 Mar 2000 15:34:22 -0800 (PST) (envelope-from wcarey@wcarey.com) Date: Wed, 15 Mar 2000 15:34:22 -0800 (PST) From: Woody Carey To: Zhihui Zhang Cc: freebsd-questions@FreeBSD.ORG Subject: Re: library routine used to read a configuration file In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG there are some libraries in /usr/ports/devel that help with this. you can also write a nice class to do this using the standard library map class. A map of two strings. Also check out some of the online free c++ library guides for this sort of thing. There should be some called CmdLine and Options, both from the same guy, which work on FreeBSD. http://www.enteract.com/~bradapp - Woody On Tue, 14 Mar 2000, Zhihui Zhang wrote: > > I need to write a daemon that reads a configuration file when it starts. > Is there any library routines that can help me on this? Thanks a lot. > > -Zhihui > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message