Read one line from the open file:
The fgets() function returns a line from an open file.
|file||Required. Specifies the open file to return a line from|
|length||Optional. Specifies the number of bytes to read. Reading stops when length-1 bytes have been reached, or when a new line occurs, or on EOF. If no length is specified, it reads until end of the line|
|Return Value:||A single line read from the file on success, FALSE on EOF or error|
|Binary Safe:||Yes, in PHP 4.3|
Read open file, line by line: