fclose

(FW >= 1.0)

fclose - close a file, socket or serial port

Description

fclose(int handle)
Closes a resource that has previously been opened

Parameters

handle

handle of a previously opened resource

Return Value

none

Examples

<? 

$f = fopen("/test.txt","r");
if ($f) {
// print the first line of the file
print(fgets($f));
fclose($f);
} else {
print("unable to open file");
}
?>