Click to See Complete Forum and Search --> : File


hometown
October 21st, 2003, 11:03 AM
Could you tell me what gurus can know from a binary file ? What do they read ? Because I see nothing but 0 and 1...Please help me Okay ?:(

Thanks,

khp
October 21st, 2003, 09:35 PM
In general you can't really know anything about an arbitary binary file, as you say they are essentially just a bunch of 1's and 0's.

Are you thinking about a particular type of file ?.

There are many different filetypes that use binary code rather than pure text.

Many binary based fileformats uses a socalled 'magic word' at the first few bytes of the file to identify the file type. So if you can recognize the 'magic word' you will know that you are most likely dealing with a file of a specific type.

For example, java class files, always start with the word CAFEBABE, written in hex codes in the first four bytes.

hometown
October 22nd, 2003, 12:09 AM
Thanks khp,

Iwas just curious abouthose files...since they look strange...:)

Fiona



PS: You didnot drink coffee to be up all night again, right ?:)

Deniz
October 22nd, 2003, 03:34 AM
Originally posted by hometown
Could you tell me what gurus can know from a binary file ? What do they read ? Because I see nothing but 0 and 1...Please help me Okay ?:(

Thanks,



homey, I once saw on tv a kid who could not only read but understand binary code. Maybe you can try to go for something like that,..?