get_line_from_file
get_line_from_file($file,$rand,$line,$timeout=COMMAND_TIME); - read a string from the specified file
The function accepts parameters as input:
$file – path to the file to read the string from. It can be either absolute or relative (relative to the script folder).
$rand – specifies to read a random string (true) or use the $line parameter (false)
$line – number of the line to read if the parameter $rand=false (line numbering starts from zero as everywhere else)
$timeout – maximum time to perform this operation (in seconds), by default - 60 seconds, if the operation is not completed during this time, the script continues to run further.
After testing, the function returns the result of its work to the script :
string – the specified string from the filefalse – the operation was not performed (the file was not found)