About physical path of the file

Discussion in 'Java' started by akhileshkokardekar@gmail.com, Jan 15, 2007.

  1. Guest

    Hi all...

    I want to create a java.io.FileInputStream using the path of the
    properties file but i dont want to hard-code the physical path. How i
    could generate this path at run time?

    Waiting for your Response.....

    Regards,
    Akhilesh
     
    , Jan 15, 2007
    #1
    1. Advertising

  2. wrote:
    ....
    > I want to create a java.io.FileInputStream using the path of the
    > properties file but i dont want to hard-code the physical path. How i
    > could generate this path at run time?


    Put it on the application classpath and call
    Class.getResource()

    > Waiting for your Response.....


    Waiting for your check to clear.

    Or to put that another, you can be impatient with
    someone you are paying (assuming you are
    paying them enough), but it does not go over
    well, here.

    Andrew T.
     
    Andrew Thompson, Jan 15, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sakharam
    Replies:
    2
    Views:
    8,562
    Sakharam
    Sep 1, 2005
  2. sven abels
    Replies:
    1
    Views:
    4,777
    joe zobkiw
    Nov 11, 2003
  3. =?Utf-8?B?SmVmZiBCZWVt?=

    physical path to virtual path under virtual directory

    =?Utf-8?B?SmVmZiBCZWVt?=, Aug 1, 2007, in forum: ASP .Net
    Replies:
    4
    Views:
    1,050
    Eliyahu Goldin
    Aug 1, 2007
  4. marss
    Replies:
    5
    Views:
    1,005
    marss
    Sep 13, 2007
  5. Scott Tilton

    Convert Physical path to Virtual path?

    Scott Tilton, Jul 11, 2003, in forum: ASP General
    Replies:
    2
    Views:
    612
    Dhananjay Modak
    Jul 11, 2003
Loading...

Share This Page