<?php //specify the filename and we call it as hello.txt $testfile = 'hello.txt'; //and inside the if statement, we pass the $testfile variable to fopen and we specify the mode as write //and fopen return a handle as a value, and using handle is useful because we could close it //returns number of bytes or false $greetings = "abc\r\ndef\r\nghi"; //this will return the position of our pointer or cursor and we can use it as key for moving around //used to seek new location for us, and we're going tell what position is going to go to //and it moves back five position //to go back at the beginning of the file //close the handle } ?>