[Taoscript-lang] New read() function: read("<<EOF") reads multi-line until "EOF" is met in a single
Status: Beta
Brought to you by:
phoolimin
From: Limin Fu <fu....@gm...> - 2005-06-06 11:31:22
|
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 |