Construction
Construction
- public function __construct($file_name) — To construct, pass the path to a file.
Internals
Internals
- public function __destruct() — Closes the file handle.
- private function closeHandle() — Close the file handle, if it is open.
- protected function willRewind() — Closes the file handle if it is open, and reopens it.
- protected function readMore() — Read the file chunk-by-chunk.