Article View: alt.comp.lang.learn.c-c++
Article #578Re: Reading Binary or Hex Data from a File
From: Steveee
Date: Sat, 05 Feb 2000 00:00
Date: Sat, 05 Feb 2000 00:00
23 lines
1693 bytes
1693 bytes
HI Chris!
I don�t know if it works, but I just try it on Bitmaps and it works quite
perfekt: Perhaps you try this:
unsigned char zeichen;
long bytezahl=0;
fstream in("name",ios::in|ios::nocreate|ios::binary);
while(in.get(zeichen))
{
bytezahl++;
cout << (int)(zeichen);
}
so you can read the int numbers from the very first beginning; you just have
to find out from which position on the different functions(e.g. parent id
etc.) start(create many files from the same type which are nearly equal and
compare such two different files).
OK; I hope I could help you,
Cu,
STefan Hinterstoi�er
Technical Details
Message-ID:
<87h2be$2ql$1@news02.btx.dtag.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<s9knkid5dh169@corp.supernews.com> <389f8202.7379027@nntp.ix.netcom.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 1118e6,34922ce457bf482 X-Google-Attributes: gid1118e6,public X-Google-Thread: 114592,34922ce457bf482 X-Google-Attributes: gid114592,public X-Google-Thread: 109fba,34922ce457bf482 X-Google-Attributes: gid109fba,public X-Google-Thread: 103c8d,34922ce457bf482 X-Google-Attributes: gid103c8d,public From: "Steveee" <SteveHi@t-online.de> Subject: Re: Reading Binary or Hex Data from a File Date: 2000/02/05 Message-ID: <87h2be$2ql$1@news02.btx.dtag.de> X-Deja-AN: 581881346 Content-Transfer-Encoding: 8bit References: <s9knkid5dh169@corp.supernews.com> <389f8202.7379027@nntp.ix.netcom.com> X-Sender: 320040843546-0001@t-dialin.net Content-Type: text/plain; charset=ISO-8859-1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 X-Complaints-To: abuse@t-online.de X-Trace: news02.btx.dtag.de 949750958 2901 320040843546-0001 000205 11:42:38 Organization: -------- Mime-Version: 1.0 Newsgroups: alt.comp.lang.learn.c-c++,borland.public.cppbuilder.language,borland.public.cppbuilder.vcl,comp.lang.c++