mtompson
12-13-2009, 01:55 PM
Hi All
I'm trying to read individual lines from a .txt file, my script is:
*********************************************
f = openfile "C:\\GeoTime.txt"
while not eof f do
(
inputData = filterstring (readLine f) ","
)
close f
print "Line = "+inputData[1]
*********************************************
My .txt file reads:
Holocene
0
0.01
But when I run my script it prints '0.01' , I expected 'Holocene' for inputData[1]..
I expect:
inputData[1] = Holocene
inputData[2] = 0
inputData[3] = 0.01
any ideas?
Many thanks
PS Sorry if I posted this twice, computer acting funny!
I'm trying to read individual lines from a .txt file, my script is:
*********************************************
f = openfile "C:\\GeoTime.txt"
while not eof f do
(
inputData = filterstring (readLine f) ","
)
close f
print "Line = "+inputData[1]
*********************************************
My .txt file reads:
Holocene
0
0.01
But when I run my script it prints '0.01' , I expected 'Holocene' for inputData[1]..
I expect:
inputData[1] = Holocene
inputData[2] = 0
inputData[3] = 0.01
any ideas?
Many thanks
PS Sorry if I posted this twice, computer acting funny!
