15 – PHP File Handling: Moving the File Pointer

0
582

If you have remembered in one of our lesson the writing of the file, we talked about the idea of the file pointer or its like a cursor in a word processor. So in file handling we have the ability to move the pointer around the file to write in different places within the file. And this will be our focus for this lesson.

To start in this lesson lets create a new PHP file and lets call it as “filepointer.php” and add the following code.

 

 Output:

mo1

Facebook Comments

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.