> fh = file.open("c:/xxx.txt","r")
> s = file.readline(fh,"2")     

The file.readline function only allows one argument and can only read the next 
line.  The above should produce an error message.



>
> for (lineNum=1;1;LineNum=LineNum+1)
> 
> What is the meaning about;1;
It means "true".  The middle portion of the for is an expression and tor loop 
continues while the expression is not 0 (or "").  Since, "1" in this case does 
mean the for will continue for ever.

Another way to read a file is 
fh = file.open("c:/xxx.txt","r")
for each li index lineNum in fh
do stuff with li
endfor



> Is it Infinity?
>


Reply via email to