[Courses] [C] Beginner's Lesson: How do I...?

Anand R anand.r at cybertech.co.in
Fri Jun 13 10:42:40 EST 2003


Team,

	Got very occupied with some stuff and could not check my Linuxchix
emails for quite sometime. Finally managed to browse through all of them. 

And then I took a look at this one. There are many programs like wuftpd,
apache etc which use config files. I was wondering if somebody from the team
could share a document or experience on reading from a config file and using
the values as program arguments. How do I read from a config file and use
the read values as program arguments. Even some sample code would be great.

Thank you and regards,
--andy

> ----------
> From: 	Akkana[SMTP:akkana at shallowsky.com]
> Sent: 	Saturday, December 14, 2002 10:59 AM
> To: 	courses at linuxchix.org
> Subject: 	Re: [Courses] [C] Beginner's Lesson: How do I...?
> 
> KWMelvin writes:
> > I think this is a good exercise! However, it may very well be an
> > "intermediate" exercise, not a "beginner" exercise.  Sometimes I
> > bite off more than I can chew. It always ends up being a learning
> > experience, even if what I learn is: I can't do this (yet)! 8^D
> 
> I agree, it is a good exercise.
> When I first read your description of the problem, I thought it
> sounded pretty simple.  But when I actually tried to toss off a code
> sample to show how to do it, I ended up trying a couple of different
> approaches and having them grow into messy hard-to-read code before
> I settled on a code snippet I actually liked.  So although the problem
> sounds straightforward, it's actually trickier than it sounds.
> Don't feel bad if you didn't get it!  
> 
>     ...Akkana
> 
> 
> 


More information about the Courses mailing list