comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Combine ascii and binary format (i.e. formatted and unformatted)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Combine ascii and binary format (i.e. formatted and unformatted) [message #19757 is a reply to message #19742] Fri, 14 April 2000 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Vince Hradil (hradilv@yahoo.com) writes:

> Won't this work?
>
> myInteger = 0
> myBlank = 0B
> myArray = dblarr(sizeOfMyArray)
>
> openr, lun, 'filename', /get_lun
> readu, lun, myInteger
> readu, lun, myBlank
> readu, lun, myArray
> close, lun

Or, more likely,

openr, lun, 'filename', /get_lun
readu, lun, myInteger, myBlank, myArray
free_lun, lun

Cheers,

David

P.S. Closing logical unit numbers that are obtained from
GET_LUN will NOT free them. However, freeing them WILL
close them, too. :-)

--
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: object graphics symbols
Next Topic: Re: Object graphics polygons

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 11:22:04 PDT 2025

Total time taken to generate the page: 0.96110 seconds