Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

building ,extracting binary files in c Help

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 jakeblues   Members   

122
Like
Likes
Like

Posted 13 October 2001 - 06:57 PM

can anyone help me out i want to figure out how to build a program to build and extract binary files i have several books but none of them really touch the topic at all is it that difficult? can someone give me an example i know some of you are excellent programmers but i am stumped help me ,help me pease!!

#2 Deek_2k   Members   

122
Like
Likes
Like

Posted 17 October 2001 - 10:29 AM

fopen(FILE, filename, "b**");

where ** are your other options for opening like read only and stuff...
that will open the binary file... and i believe to read from it use fread()
and fgets().... and fwrite() to write to the file... its all simple c... but my referance has gone missing and i forget...

Edited by - DeeK_2k on October 17, 2001 5:30:27 PM




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.