Any Answers for this

I need to know as to how to load a properties file recursively from inside a class file recursively looking for it from the the concerned class till the top pf package hierarchy.Ofcourse if i have my properties file at the root of my package hierarchy then i am able to load it with this statement:
InputStream is = MyClass.class.getResourceAsStream("/propfile.txt");
properties.load(is);
Buti want to load it in a relative manner as i said above.Now how to do this.Say ur package structure is something like this A.B.C .
Inside C is my class file Now when reference is made to the class file then it should look first in C then B then A and eventually just outside A.
Thanks
Rajesh

It's nice to know I'm remembered by you smg123 (although you're waaaaaayyy off trying to describe me)

Similar Messages

Maybe you are looking for

  • Unable to view data in designer.

    Hi, I have successfully imported metadata into the designer in ODI but when I attempt to view the data in the table I get an error message : "There is no connection for this logical schema/context pair: XXX_src_Schema / GLOBAL" I am having trouble tr

  • How to I insert a line of best fit on a scatter plot????

    I have data already organized in tables, and I created a scatter plot. NOw I need to insert a line of best fit and get the equation. How do I do this??? I already calculated a and b (for y=a+bx) but I have no idea how to insert it on the plot. Every

  • Transfer information from my old Blackberry to my new Z10

    I downloaded the blackberry startlink file but when I run the application I am getting the following message Erreur CLR: 80004005 The program will halt now Anyone could help me please

  • Mail hangs (freezes) several times each day

    I have included the console log in hope that someone can make sense of why this behaviour has begun. I was completely stable in Mail until shortly after about two months of using Mail in Mavericks. TIA! Date/Time:       2014-01-07 01:06:36 -0500 OS V

  • Iphoto 6 photos not showing at all

    I have been using Iphoto 6 for a while now and after I updated the software, most of my pictures show up as grey boxes with an exclamation mark on them. How do i see my pictures?? When I double click on the pictures that are actually seen, they pop u