Hi!
To solve the problem pointed out be Jupp, I have enable read() function to=
=20
read multi-lines until a user-define "EOF" is met in a _single_ line. The=
=20
syntax is like the following:
# from standard input:
string =3D read( "<<MyEOF" ); # the user-defined "EOF" should be prefixed b=
y=20
"<<"
read( string, "<<MyEOF" ); # the order of the parameters is not important,
# but should not be more than 2.
# from files:
string =3D file.read( "<<MyEOF" );
file.read( string, "<<MyEOF" );
The new binaries for linux can be downloaded from cvs in SF:
http://cvs.sourceforge.net/viewcvs.py/taoscript/TaoScript/bin/
(pay attention to the time tag of the files)
Cheers,
Limin
|