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

Home » Public Forums » archive » Re: Ascii-import
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: Ascii-import [message #32025 is a reply to message #32024] Tue, 10 September 2002 06:58 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Thomas Jordi (tschordi@giub.unibe.ch) writes:

> Thanks to both of you. As the ascii_read didn't work I first posted,
> then thought.
> This is how i finally resolved it (with w eq filename):
>
> OPENR, unit10, w, /GET_LUN
> buf=''
> count=0
> WHILE (NOT EOF(unit10)) DO BEGIN
> READF, unit10, buf
> count=count+1
> ENDWHILE
> CLOSE, unit10 & FREE_LUN, unit10
> img=STRARR(count)
> OPENR, unit9, w, /GET_LUN
> READF, unit9, img
> CLOSE, unit9 & FREE_LUN, unit9
>
> some sort of countrows...

That's pretty much it. :-)

You don't need to use the CLOSE statement, by the way.
FREE_LUN will both close and free the logical unit number.
CLOSE is only required for those logical unit numbers you
assign directly, not those you obtain with GET_LUN or the
GET_LUN keyword.

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@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
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Simple animation?
Next Topic: CW_Animate procedure...

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

Current Time: Sun Nov 30 13:17:27 PST 2025

Total time taken to generate the page: 0.48086 seconds