Remember to close the file handle to avoid memory leaks: `fclose($handle)`