diff --git a/reference/filesystem/functions/fread.xml b/reference/filesystem/functions/fread.xml index 3c703b809e..cf80719929 100644 --- a/reference/filesystem/functions/fread.xml +++ b/reference/filesystem/functions/fread.xml @@ -1,5 +1,5 @@ - + fread @@ -160,6 +160,14 @@ fclose($handle); than the code above. + + + Note that fread reads from the current position of + the file pointer. Use ftell to find the current + position of the pointer and rewind to rewind the + pointer position. + + @@ -175,6 +183,8 @@ fclose($handle); fscanf file fpassthru + ftell + rewind