|
|
Hi,
I've got a text file I want to read from:
"first, second, third"
I want to read the first item ("first") into Var1:
#fopen MyFile "test.txt" read
#read (MyFile, Var1)
#fclose MyFile
When I run this code I get the error"
"test.txt" line 1: Parse Error: Expected 'float, vector,
or string literal', undeclared identifier 'first' found instead
Apparently POV-Ray interprets the first data item as an identifier. Is my
understanding of #read wrong?
TIA
Steven
Post a reply to this message
|
|