Mail Archives: djgpp/1999/02/20/04:52:11.1
> 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 -