How to omit a header?

R

RB

What is the best way to omit a header (44 bytes length) from a binary file?

Thanks in advance,
Rita
 
T

Thomas Matthews

RB said:
What is the best way to omit a header (44 bytes length) from a binary file?

Thanks in advance,
Rita

Proper method:
Copy the entire file, less the header to a new file.
Remove the old file.

Alternative:
Copy the 45th byte and on up to the start of the file,
thus overwriting the original data in the file. This
will not shrink the file at the end.

Another alternative:
Read and ignore the header.
Or just seek past it.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top