delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/20/04:52:11.1

From: Airhead Zoom <airhead_zoom AT hetnet DOT nl>
X-Priority: Normal
To: djgpp AT delorie DOT com
Subject: Re: HELP: File-I/O under DJGPP ???
X-Mailer: Pronto Pro [ver 1.00 (0225)Trio]
Mime-Version: 1.0
Message-ID: <0d46d1945091429NET015S@hetnet.nl>
Date: 20 Feb 1999 10:45:20 +0100
Reply-To: djgpp AT delorie DOT com

> Hi,
Hello,

> 
> If you use fopen() to open the file, rather than open() and save the result
> in a FILE*, then you can move through the file using fseek()
>>>>>>>>example proggy<<<<<<<<<<<
> I have written a PCX class if you are interested...
> 
> Hope this helps,
> James Kermode
> 
> >I am writing a little class for loading .pcx-files and showing them on the
> >screen.
> >OK?
> >
> >My Problem now is that I need to change my position in the file (normally I
> >use fseek or such a kind but here it doesn't work).
> >What can I do to change my position?
> >
> >I really NEED help fast!
> >
> >Fozzie

...take a look @ the UNISTD.H file. There's a prototype for something called 
'LSEEK'. It accepts almost the same parameters as FSEEK and you don't have to 
use those pesky (in my opinion) FILE * things.

Greetz,

Airhead Zoom of Dancing Pumpkin Productions

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019