Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Read a file line by line

<?php
$file = fopen("welcome.txt","r")or exit("unable to open file!");

while(!feof($file)){
	echo fgets($file)."<br>";
}
fclose($file);
?>
Source by www.guru99.com #
 
PREVIOUS NEXT
Tagged: #Read #file #line #line
ADD COMMENT
Topic
Name
9+2 =