Class List
java.lang.Object
|
+--List
- public class List
- extends Object
List.java
A class to demnstrate File I/O
Created: Fri Feb 7 08:08:52 2003
- Author:
- Stuart C. Shapiro
Constructor Summary |
List()
|
Method Summary |
static void |
main(String[] args)
Lists a file on System.out
The file name must be supplied as a command-line argument. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
List
public List()
main
public static void main(String[] args)
- Lists a file on System.out
The file name must be supplied as a command-line argument.
Prints an appropriate message if the file doesn't exist.
Prints an appropriate message if there is an I/O error during operation.
- Parameters:
args
- a String[]
value
arg[0] is used as the name of the file to be printed.
Other command-line arguments are ignored.