get_line_from_file
get_lines_from_file($file,$beg_line,$lines_count,$timeout=COMMAND_TIME); - read a range of strings from the specified file
The function accepts parameters as input:
$file – path to the file to read the range of lines from. It can be either absolute or relative (relative to the script folder).
$beg_line – the number of the initial line (numbering starts from zero as everywhere else)
$lines_count – the number of lines to read
$timeout – the 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 :
lines – specified lines from the filefalse – operation failed (file not found)