Archived

This topic is now archived and is closed to further replies.

jakeblues

building ,extracting binary files in c Help

Recommended Posts

jakeblues    122
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!!

Share this post


Link to post
Share on other sites
Deek_2k    122
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

Share this post


Link to post
Share on other sites