[2305] in java-interest
Getting a text file with a URL
daemon@ATHENA.MIT.EDU (Adam Krawitz)
Fri Sep 29 03:42:10 1995
From: Adam Krawitz <cs169060@cs.brown.edu>
To: java-interest@java.sun.com
Date: Fri, 29 Sep 1995 01:24:21 -0400 (EDT)
In the pre-beta API, is there a function that takes a URL for a text
file as a parameter, and returns the contents of the file as a String?
I'm thinking along the lines of Applet.getImage and
Applet.getAudioClip, but for text.
I've tried various combinations of URL, URLConnection, and InputStream
objects without any luck so far. I thought there might be a straight
forward method that I'm blindly overlooking.
Its ironic that its easier to figure out how to download a fully
operative sound or image than a simple text file.
Thanks,
AdamK
cs169060@cs.brown.edu
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com