Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Use fgetc() to read a single character from a file
SUBMITTED BY:
henry1874w
DATE:
June 21, 2017, 11:27 p.m.
FORMAT:
Text only
SIZE:
252 Bytes
Raw
Download
Tweet
HITS:
197
Go to comments
Report
<!DOCTYPE html>
<html>
<body>
<?php
$myfile = fopen("webdictionary.txt", "r") or die("Unable to open file!");
// Output one character until end-of-file
while(!feof($myfile)) {
echo fgetc($myfile);
}
fclose($myfile);
?>
</body>
</html>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus