K
K
Kirill By2016-04-26 19:17:30
Delphi
Kirill By, 2016-04-26 19:17:30

Parsing a binary file and dumping its contents into an array. How to do it in Delphi?

There is the following problem: there is a binary file with *.bt8 extension. It contains data, which, in theory, is a two-dimensional array 4096x4096. Examining the file in the 010 Editor, I realized that each line begins with the following structure XX XX XX XX 5E 7B D0 01. After these bytes, there are 4096 bytes, which represent the data I need. It is required to analyze the file and enter this data into an array in Delphi. The file itself:

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily, 2016-04-26
@Foolleren

so you have to skip 8 bytes and copy 4096, there are many options from projecting a file into RAM to file streams.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question