
binary files and user defined data types
You can use Get and Put to read/write data to any part of a file. If you
know the precise format of the header then you can create a UDT with longs,
fixed length strings etc. Alternativey, you can create a Byte array equal in
length to the part of the file you are interested in.
Mike
Quote:
> Hi All,
> re: reading and writing to binary files.
> Has anyone attempted to read header information from a binary file in
> VB. If the details of the header information (of say an image(eg tif)
> file) are known(where certain information is stored (eg bytes 110
> through 125 etc) and what exactly is stored), is it possible to create a
> data type to read that information into that type. Any details could
> then be changed and written back to the header and the image could be
> viewed as normal. I'm not that interested in the 'display' of the image
> per se only the information that's stored in the header, where and can
> it be changed fairly easily in VB.
> Any information would be useful, using any sort of image data (or
> reading binary files).
> regards,
> Michael