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

Home » Public Forums » archive » Re: problem with reading formated file
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: problem with reading formated file [message #10156 is a reply to message #10154] Sat, 11 October 1997 00:00 Go to previous messageGo to previous message
ccampo1 is currently offline  ccampo1
Messages: 1
Registered: October 1997
Junior Member
On Fri, 10 Oct 1997 19:25:54 +0300, Pavel Eiges <eiges@chat.ru> wrote:
> i have a formated file like this:
> ===========================
> 1877383765 1.778
> 1877384765 1.685
> 1877385765 1.599
> 1877386765 1.599
> 1877387765 1.685
> ===========================
> and i need to load it into two arrays. the first array is LONG-type,
> the second one - FLOAT-type. How i can do this?
> ("READF, file, Time, Data" does not work).


try this:
n=5
time = lonarr(n)
data = fltarr(n)
for i = 0, n-1 do begin
readf,file, time(i), data(i)
endfor
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: widget_control,draw_widget
Next Topic: open windows with IDL on two monitors?

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

Current Time: Wed Oct 08 18:10:42 PDT 2025

Total time taken to generate the page: 0.00190 seconds