IF Computer > MINERVA > Example Programs > MINERVA Features > GetURL

GetURL

MINERVA
ifcomputer logo
f
Expert Services on the Web

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

document: http://www.ifcomputer.co.jp/MINERVA/ExamplePrograms/MinervaFeatures/GetURL/print_en.html
published 2008/5/19 update 2001/3/22 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 info@ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
Back> managed with ubiCMS