How to access text file?
- From: Perfect Reign <theperfectreign@xxxxxxxxx>
- Date: Mon, 31 Oct 2005 08:37:05 -0800
just added a class to a new project which access a configuration file. In
debugging the class it keeps saying the file is not present. I have it
located at the root of my package along with most of my .class files and in
the src directory.
What do I need to use to access a file from within netBeans?
I've tried this:
File propFile = new File( parmConfile);
if (! propFile.exists()) return getConfig;
and this:
File propFile = new File("/donutmon1/" + parmConfile);
if (! propFile.exists()) return getConfig;
....
Ideas?
--
kai - theperfectreign@xxxxxxxxx || www.perfectreign.com
"I got a Rock!" - Charley Brown
.
- Follow-Ups:
- Re: How to access text file?
- From: Andrew Thompson
- Re: How to access text file?
- Prev by Date: Re: A 'greedy' component...
- Next by Date: Re: Help - Image icon
- Previous by thread: Re: A 'greedy' component...
- Next by thread: Re: How to access text file?
- Index(es):