bidvertiser

Friday, September 12, 2008

PHP file reading

The fgets( ) function.
The fgets() functions is used to read a line from a file. Using this function we either read the entire line into a string or specify the number characters we like to read.
fgets ($handle, $length);
$handle - the file pointer
$length - number of bytes to read. If length is not specified it will read at the end of the line.

No comments: