From: jerry AT eteklabs DOT com (Scott "Jerry" Lawrence) Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro and Config files Date: Thu, 11 Dec 1997 12:25:57 -0500 Message-ID: References: <0oXOeCAlktj0EwkD AT talula DOT demon DOT co DOT uk> Organization: e-TEK Labs NNTP-Posting-Host: dial-dominion-6.netacc.net Lines: 27 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In article <0oXOeCAlktj0EwkD AT talula DOT demon DOT co DOT uk>, Shawn AT talula DOT demon DOT co DOT uk says... > 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 :-) My bad. I was doing something really dumb. I thought i posted a followup to my initial message, but i guess it got lost. I was calling the Get_config_* before the set_config_file call. I didn't even notice it until i set it aside and looked at it again a few hours later. sorry 'bout that. It all seems to work great. :) -j