Whoops!
Missed the throws Exception in the main method!!
My mistake - need new glasses!
Kristoz

On Aug 30, 10:36 am, Kristoz <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to