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

Home » Public Forums » archive » Re: converting to array
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: converting to array [message #24150 is a reply to message #24143] Mon, 12 March 2001 11:53 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Martin Skou Andersen (skou@fys.ku.dk) writes:

> I have some data from a file...
> example:
> file start
> 10.5 30.5 40.8 57.9 90.8
>
> end of file
> I would like to read these data from a file, and these should be placed
> in a array...
> But when I read the file the datas are placed in a string. How do i get
> these data converted to a array?

array = FltArr(5) ; Or, however many values you have.
OPENR, lun, 'myfile.dat', /Get_LUN
READF, lun, array
FREE_LUN, lun

Cheers,

David

--
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
Read Message
Previous Topic: Re: plot structured data II
Next Topic: linkimage query

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

Current Time: Wed Oct 15 13:56:35 PDT 2025

Total time taken to generate the page: 0.24073 seconds