Lines Matching refs:file_handle
41 $file_handle = fopen($filename, "w");
43 $file_handle = fopen($filename, $file_modes[$mode_counter] );
45 if ( !$file_handle ) {
52 fwrite($file_handle, $csv_field . "\n");
56 fwrite($file_handle, "This is line of text without csv fields\n");
57 fwrite($file_handle, "\n"); // blank line
62 fclose($file_handle);
63 $file_handle = fopen($filename, $file_modes[$mode_counter]);
69 var_dump( fseek($file_handle, 0, SEEK_END) );
74 var_dump( feof($file_handle) );
76 var_dump( fgetcsv($file_handle, 1024, $delimiter, $enc ) ); // with length, delimiter
78 var_dump( ftell($file_handle) );
79 var_dump( feof($file_handle) );
81 fclose($file_handle);