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

Home » Public Forums » archive » Re: Reading a table of data quickly
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: Reading a table of data quickly [message #34149 is a reply to message #34148] Tue, 25 February 2003 07:23 Go to previous messageGo to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
CelticBlues wrote:
> I have a table of floating points I need to read from a file. I will know
> at run time, from other information in the file, the number of rows and
> cols.
>
> Assume I have read the rows into the var numberOfRows and likewise for
> numberOfColumns.
>
> How can I quickly, preferrably all at once, read in the table?
>
> I assume I first need to create an array into which to put the data...
>
> ; create array for data
> data = dblarr(numberOfRows, numberOfColumns)
>
> ; read it
> ; ?
>
> Thanks,
> Ed
>
>


openr,1,filename
readf,1,data
close,1


-bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: WTB: Used documentation for IDL, PV-WAVE.
Next Topic: Re: Random spherical distributions

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

Current Time: Wed Dec 03 01:19:46 PST 2025

Total time taken to generate the page: 0.87503 seconds