From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro and Config files Date: Wed, 10 Dec 1997 18:02:13 +0000 Organization: None Distribution: world Message-ID: <0oXOeCAlktj0EwkD@talula.demon.co.uk> References: NNTP-Posting-Host: talula.demon.co.uk MIME-Version: 1.0 Lines: 21 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Scott "Jerry" Lawrence writes: >Hi there. Is there anything on the web or in any archive >anywhere about using "config files" with allegro? I've been >mucking about with the config functions a little bit, and >I have it creating the .ini-like file, and writing everything >to the proper headings and such, but i cannot read it back >properly. I've checked upper/lowercase, and also i've checked >the file to be sure it's in there properly... There is nothing particularly complicated about those functions: just call get_config_string() to retrieve whatever variable you are interested in. Look at the save_joystick_data() and load_joystick_data() functions (in joystick.c) for a practical example. If you want more detailed help, you will have to post some of your code. I can't tell what you are doing wrong just by guesswork :-) -- Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/ "Pigs use it for a tambourine" - Frank Zappa