Message-ID: From: Shawn Hargreaves To: djgpp AT delorie DOT com Subject: Re: Allegro Packfile routines vs. functions... Date: Fri, 17 Apr 1998 10:22:08 +0100 MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk Jeremy Lounds writes: > And here is mine that fails at _pack_fread : [...] > the_file=pack_fopen( mFilename, F_READ ); > pack_fseek( the_file, Start ); > size=pack_fread( buffer, Len, the_file ); > pack_fclose(the_file); > return(size); You don't say _how_ it fails, which makes it rather tricky to say what the problem might be! The code looks ok to me, except that I would advise checking the return from pack_fopen() to make sure it is really finding your object. What happens when you run this: does it crash, or just return incorrect data? Shawn Hargreaves.