Script functions reference > Script functions in alphabetical order > U > URLReadLn

URLReadLn
Syntax
URLReadLn(connectionID, var);
connectionID
var
Description
Reads a line from the specified file until a new line or an end of file is reached, and returns the line to a specified variable. The new line character is not included in the result. You must open the file to be read with URLOpen before calling URLReadLn. Use the URLClose function to close the file after reading.
Returns
A number indicating whether the line was successfully read.
0
1
Example
while(URLreadln("my_connection", $inbuf) = 0){
}
Reads from the file connected via my_connection until EOF is reached.
 
OpenText StreamServe 5.6 Updated: 2013-03-01