Well, I'm using Windows 98 SE, and I right clicked the document, and checked Properties, and it said the location was:
C:\WINDOWS\Desktop
which would then make the full path for my text file to be:
c:\WINDOWS\Desktop\names.txt
right?
Back to square one.
EDIT:
I used that path again, and it didn't seem to work. I had been getting "Resource id #1" Then I added a while loop and it worked perfectly...kindof.
The new question is this:
This text file is source code from an HTML page. When I open the file, I expect to see the source code displayed, instead, it displays the HTML page, ie., the tables and colors and formatting, whereas I just want the source code. Here is my code:
<html>
<head><title></title></head>
<body>
<?php
$fd = fopen ("c:\WINDOWS\Desktop\scoreboard[1].txt","r");
$boxcoreURLs = array();
while (!feof ($fd))
{
$buffer = fgets($fd, 4096);
echo ("$buffer");
}
echo ("$fd");
?>
</body>
</html>
Can someone tell me how to just get the source code displayed? Eventually, I want to search the file for some URLs and stick them into an array, if that helps any. Thanks.