import java.io.File;
public class MainClass {
public static void main(String[] argv) {
File myFile = new File(".");
try {
System.out.println("About to call.");
myFile.getCanonicalFile();
System.out.println("Call succeeded.");
}
catch (Throwable xceptn) {
System.out.println("File stress! " + xceptn.getMessage());
xceptn.printStackTrace();
}
System.out.println();
}
}
|