[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Reading binary files
- From: "Javier Guerra" <javier@...>
- Date: Mon, 15 Sep 2008 09:34:19 -0500
On Mon, Sep 15, 2008 at 9:23 AM, Jeff Wise <jwise@sealyrealty.com> wrote:
> Again, the data looks like '5A', nnnn, other data
> Where the nnnn is a two byte signed integer (and hi-order byte, low-order
> byte, not Intel format). For example, many length fields are X'2008' meaning
> 8200 bytes. The objective is to count these records. This is complicated by
> the fact that the "other data" may contain '5A' bytes.
if the data can contain '5A' bytes, then it's useless as a marker.
ignore it, and don't waste time trying to use it. you have the real
size count, use that to calculate the substring you have to pick.
--
Javier