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

Home » Public Forums » archive » read a multi-line string in IDL? or, read numeric values sequentially without automatic <CR>?
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: read a multi-line string in IDL? or, read numeric values sequentially without automatic <CR>? [message #87409 is a reply to message #87408] Fri, 31 January 2014 11:25 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
fawltylanguage@gmail.com writes:


> On Friday, January 31, 2014 8:00:07 PM UTC+1, pcoelh...@gmail.com wrote:
>>
>> READ(12,*) (NV(J),J=1,NUMBER)
>> (the ASC file is like that because it is used by an old FORTRAN code)
>>
>> ... READF will read one number per line only. ...
>
> False.
>
> NV=fltarr(NUMBER)
>
> openr, unit, filename, /get
> readf, unit, NV
> free_lun, unit

Don't you just love IDL! ;-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: gridding XYZ to surface: how to blank no data?
Next Topic: Create new variable with subset of 4D array

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

Current Time: Thu Oct 09 21:58:31 PDT 2025

Total time taken to generate the page: 1.04628 seconds