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

Home » Public Forums » archive » Reading data from file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Reading data from file [message #9628] Wed, 23 July 1997 00:00 Go to next message
Neil Winrow is currently offline  Neil Winrow
Messages: 18
Registered: July 1997
Junior Member
Can anyone help me!
I need to read data from a file I open as part of my progam. The problem
is the data I need to read is on a specific line and column of the data
file and I can't seem to read the correct column. I have seen the 'TL'
function for reading formatted data, but can't seem to use it. The idea
is to search down so many lines and then across so many columns, and
read the next three columns of integer values. If anyone understands my
problem can they help.

Many Thanks

Neil.
Re: reading data from file [message #49203 is a reply to message #9628] Fri, 07 July 2006 02:02 Go to previous message
Nicola is currently offline  Nicola
Messages: 21
Registered: November 2005
Junior Member
greg michael wrote:
> Try this:
>
> header=strarr(lines)
> data=intarr(4,3)
> openr,1,filename
> readf,1,header
> readf,1,data
> close,1
>
> regards,
> Greg

thank you Greg. It was so simple .... sorry for the disturbance
regards
Nicola
Re: reading data from file [message #49215 is a reply to message #9628] Thu, 06 July 2006 11:32 Go to previous message
greg michael is currently offline  greg michael
Messages: 163
Registered: January 2006
Senior Member
Try this:

header=strarr(lines)
data=intarr(4,3)
openr,1,filename
readf,1,header
readf,1,data
close,1

regards,
Greg
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: overwriting x axis labels
Next Topic: Re: reading past leading and training bytes

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

Current Time: Wed Oct 08 15:53:32 PDT 2025

Total time taken to generate the page: 0.00431 seconds