| The MINERVA example program GetURL shows
- how to use MINERVA to read a file from the Internet
- how to use a URL as an input stream
- how to process a text file in units of lines and characters
- how to do this as standalone and applet
- how to work with exceptions
The applet wrapper is
getURL.html
The MINERVA source program is
getURL.min
Refer to 'Compile', 'Go' and the other files of this directory for details.
In the applet, just type a URL in the input line of the applet then
the program will get the file and copy the file to stdout.
(Java security exceptions will occur for URLs from other hosts
and for file urls).
As a standalone the program can go for any text file url, thus can be
the sucking end of a web crawler or internet search engine.
Questions? Problems? Feedback? Please let us know!
mailto:support@ifcomputer.com
|