You could do it in either language.
If you don't like it running in the browser, you make a command-line version.
########################################################################
# Read content from a web page
$fileInFile=fopen("http://server.ext/Resources/SmallTextFile.txt", "rb");
while(!feof($fileInFile))
{
$strData = fgets($fileInFile);
printf($strData);
}
fclose($fileInFile);
thines01
Postaholic
2,424 posts since Oct 2009
Reputation Points: 445
Solved Threads: 402
How would I do it in C++?
you can't do that with just pure C++. You will have to use external libraries like ncurses
firstPerson
Senior Poster
3,923 posts since Dec 2008
Reputation Points: 841
Solved Threads: 608
you can't do that with just pure C++.
It would be difficult in "pure" C++.
I personnaly would use C++/CLI with the WebClient class and call the OpenRead() method that opens a Stream. I would feed that into a StreamReader and treat it like a file.
thines01
Postaholic
2,424 posts since Oct 2009
Reputation Points: 445
Solved Threads: 402