http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fread() function and unsigned integers, words and dwords



Hi,

Can somebody please explain to me how the fread() function works? I looked
at the stdio.h file, but I can't make out exactly which parameters to pass
to it. Is it similar to fgetc() and fgets()? Would it work to input
unsigned integers, words and dwords from files? Also, I know how to declare
a variable as an unsigned integer, but what would I have to do to make it a
word or dword? Would I have to use a char/int/long/float/double? Or what?
I'm trying to read a header file, any ideas? I'm using a struct for the
header.

Kind regards,

Lionel Pinkhard
=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once

To SUBSCRIBE or UNSUBSCꫨ please visit:
http://gameprogrammer.com/mailinglist.html