<?php$file=fopen("ex2.txt","w")ordie("Unable to open file!");$text="Code\n";fwrite($file,$text);$text="Projects\n";fwrite($file,$text);fclose($file);?>
<?php$file=fopen("ex2.txt","w")ordie("Unable to open file!");$text="Projects\n";fwrite($file,$text);$text="Tutorial and More\n";fwrite($file,$text);fclose($file);?>