You selected the following properties to visit:-
"; } } //READ THE FILE $fileName="propDetails.txt"; //puts file called propDetails into variable filename $filePointer = fopen($fileName,"r");//opens propDetails for read $aFile=file($fileName); //puts file contents of propDetails into array called $afile fclose ($filePointer); //WRITE TO FILE $fileName = "propDetails.txt"; $filePointer = fopen($fileName,'w') or die("can't open and write to file"); for($myCount=0; $myCount
" . "One visit has been added to each of these properties and stored in the text file"; function getValue($text,$position) //create the two variables to hold the passed values { $intoArray = explode(",",$text); //explode reads the text according to the passed values return $intoArray[$position]; //returns the text to where it was called in the code, puts the result into $aWord } //end of function getValue fclose ($filePointer); ?>