Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

File read by char

Sun Oct 26, 2008 9:19 pm

<html>
Code:
<head>
<title></title>
</head>
<body>
<?php
$filename 
"test.txt";

$fp fopen$filename"r" ) or die("Couldn't open $filename");
while ( ! 
feof$fp ) ){
   
$mychar fgetc$fp );
   print 
"$mychar<BR>";
}
?>
</body>
</html>




Post a reply
  Related Posts  to : File read by char
 casting to char + end of file     -  
 convert char*(number) to required unsigned char*     -  
 read from file in C++     -  
 Read csv file     -  
 File write read     -  
 Read Binary File in C++     -  
 read file in matlab     -  
 Read and Write to file using ASP     -  
 javascript read file     -  
 Read and write CSV file     -  

Topic Tags

PHP Files and I/O