Martha's CIS 52 Lab #2 Exercise #15

Lab # Exercise #15. Create a text file and read the file one character at a time

**************************************************************

CODES:

$handle = fopen("lab02-14.txt", "r");
if ($handle) {
while (!feof($handle)) {
$result = fgets($handle, 4096);
echo $result;
}
fclose($handle);
}

**************************************************************

ANSWER:

T
h
i
s

i
s

a

T
E
S
T
.