STEP-1 : Open notepad and paste data.
Hello.Txt
------------------------------------------------------------------------------------------
Hello, I am <b> HELLO.TXT </b> n present in d drive of window computer.</br>
Thanks PHP for acknowledge me.</br>
Total no. of character
------------------------------------------------------------------------------------------
STEP-2 :
Again open notepad and save below code with name of
'FILE HANDLINGREADSINGLELING.PHP'
*****************************************************************************************
<?php
$myfile = fopen("D:\hello.txt", "r") or die("Unable to open file!");
echo fgets($myfile);
fclose($myfile);
?>
******************************************************************************************
No comments:
Post a Comment