Reading data from file [message #9628] |
Wed, 23 July 1997 00:00  |
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  |
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  |
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
|
|
|