I am sorry, but I do not know what you are trying to do.  The best place for
this type of question would be on a Java list.  This is a list specific to
Tomcat issues.

On 4/20/06, VIKASS NAGPAL <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> I have a problem here. I have Pproperties file.
> It has the following code:
>
> File f = new File(propertyFolder);
>
> if (!f.exists()) f.mkdir();
>
> f = new File(propertyFolder +
> System.getProperty("file.separator") +
> propertyFileName);
>
> if (!f.exists())
> {
> String s = ((this.getClass().getResource("/" +
> propertyFileName)).toString());
>
> File pf = new File(s.substring(6));
>
> This code creates a folder with the name
> propertiespaydir and file with the name
> pdr.properties. In order to connect to the database i
> have to read the Servername, Database name, Username
> and password from this file or creates a file with the
> name pdr.properties file. But If i rename this
> pdr.properties file to something else then my code
> does not create the file with the name pdr.properties.
> So I cannot connect to the database. So anyone of you
> knows what change should i make into my existing code
> in order for me to create the file with the name
> pdr.properties in case it does not exist. I would
> really be thankful for any help in this matter.
>
> Thanks,
> With regards,
> Vikas Nagpal.
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Marc Farrow

Reply via email to