The given source file does not include any try catch for the file
operations.
Should the input file data be something like:
// set up new properties object
// from file "myProperties.txt"
String fileName = "myProperties.txt";
// retrieve system properties
Properties p = new Properties(System.getProperties());
// attempt to load file contents
try {
FileInputStream propFile = new
FileInputStream(fileName);
p.load(propFile);
} catch (FileNotFoundException fnfe) {
System.out.println(fileName + " not found");
} catch (IOException ioe) {
System.out.println("error accessing " + fileName);
}
Kristoz
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---