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 stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Read #file #line #line
ADD COMMENT
Topic
Name
6+7 =