new File xml
i'm trying to get an set a file to an xml file, but it only works if i know exactly where the file is located on the system. i want to add it from my projects resources.
File file =new File(getClass().getResource("catalog.xml").toString());
is what i would like, but doesn't work.
File file =new File("c:/catalog.xml");
works, but not how i want it to work

