View Single Post
  #10 (permalink)  
Old March 30th, 2004, 02:37 PM
davekw7x davekw7x is offline
Authorized User
 
Join Date: Feb 2004
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Numbers with leading '0' are considered to be octal!

change
Code:
<< filedata[08] << filedata[09] << " "
to
Code:
<< filedata[ 8] << filedata[ 9] << " "
I suggest that you use cout << to observe the bytes that you are writing.

Dave
Reply With Quote