[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: BINARY FILES
- Subject: Re: BINARY FILES
- From: davidf(at)dfanning.com (David Fanning)
- Date: Fri, 13 Oct 2000 11:35:29 -0600
- Newsgroups: comp.lang.idl-pvwave
- Organization: Fanning Software Consulting
- References: <8s7dbs$rci$1@nnrp1.deja.com>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:21701
mohamed nur (mohamed_nur@my-deja.com) writes:
> I've been dealing with binary files and every case i had to know before
> hand the dimensions of the array to setup an IDL variable of the said
> dimesions and read the unformatted data into.
>
> But is it possible or is there a method (in IDL 5.2/5.3) to read it in
> with no knowledge of the dimensions of the array.
A free Second Edition IDL Programming Techniques book
to the first person who can find the simple word I
embedded in this binary sequence:
0 1 1 0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 1
0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0
0 0 0 0 0 0 0 0 1 1 1 0 1 1 0 0 0 0 0
0 0 0 0 0 1 1 0 1 0 0 1 0 0 0 0 0 0 0
0 0 1 1 0 0 1 0 0 1 0 1 0 0 0 1 0 1 1
0 0 0 0 1 0 0 0 1 1 0 1 1 0 0 0 0 1 0
Cheers,
David
P.S. Let's just say this is a *much* easier problem
than the one you propose. :-)
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155