<?php if(isset($_POST['submit1'])){ $fileName = "Text.txt"; $fh = fopen($fileName,"a") or die("can not open the file to write"); //Writing to a file $newData = "Hello This is new Data"; fwrite($fh,$newData); fclose($fh); //Reading a file -- Working $text = fopen("Text.txt","r") or die ("can not open the file to read"); while(!feof($text)) { $myLine = fgets($text); print $myLine; } fclose($text); } ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)