Hello,
I am new to all of this and need some help. I have a script that writes to a .txt file no problem, what I need to do now is have another script read the contents of that text file.
This is what I have so far:
<?php
$FilePointer = fopen("test.txt", "r");
while (!feof($FilePointer))
{
$line = fgets($FilePointer,4096);
print $line
;
}
fclose($FilePointer);
?>
and it reads the file no problem, but it comes in as one long sentence, it doesn't give me line breaks, or paragraph breaks or special characters. Can someone steer me in the right direction?
Thanks for the help!