ya ofcorse binary mode c. , 1- .
In most cases, all different file formats have a fixed header, so based on this you can determine the type of this file.
Open any matroska file (.mkv) and read the 1st 4th byte, you will always have this
0x1A 0x45 0xDF 0xA3
you can also see any file in binary representation hexdumpin linux
======================
Edit:
such as .jpg/.png/.bmp and see the value at certain index,to
check what colour it is?
here you need to understand the format of this file and based on this you can find out in what places the data indicates what information .. !!!
source
share