![]() |
Read a file on another machine
In this Magercise, you will open and display a file using a URL (you can use gopher, ftp, file, http, etc...) rather than a local filename. Details of using URLs to read remote files are covered in the course notes. Work LocationPerform all work for this magercise in VisualAge project MageLang Magercises, package magercises.Read a File on Another Machine. If this project does not appear in your Workspace add it from the repository (if it exists there) or create a new project using this name. Tasks
Perform the following tasks:
new URL(getDocumentBase(), "URLTest.java");Use the provided method displayFile to display the contents.
|
Copyright © 1996-1997 MageLang Institute. All Rights Reserved. |