From: SPAMGUARDriker AT pipcom DOT com (Matt Riker) Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro Datafiles - More Problems Date: Thu, 29 Jan 1998 15:59:23 -0500 Organization: Riker Software Lines: 28 Message-ID: References: Reply-To: SPAMGUARDriker AT pipcom DOT com NNTP-Posting-Host: 207.61.241.206 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In article , Shawn AT talula DOT demon DOT co DOT uk says: > It sounds to me like you need to dig out a good C book and do some > reading about the differences between integers, arrays, and string data! Yeah, I later figured it out; I have no idea why I didn't figure it out in the first place. I know the differences between integers, arrays, and strings; they all start with a different letter! :) Doh! > >Second problem: having 2 datafiles opened at the same time. > [...] > > strcpy(get_filename(buf), "c:/maped/testspr.dat"); > > user_datafile = load_datafile(buf); > > Why make life so complicated for yourself? Since you are using a I choose a life of pain ;) Chances are I grabbed the code out of one of the example files. I'd hate to admit it, but I guess it would be a good idea to thoroughly look thru the docs in the future. Thanks for your help :) ____________________________ Matt Riker SPAMGUARDriker AT pipcom DOT com *** Remove SPAMGUARD *** *** when replying! ***