aspose file tools*
The moose likes Java in General and the fly likes IgnoreCase Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "IgnoreCase" Watch "IgnoreCase" New topic
Author

IgnoreCase

Rekha Dehal
Greenhorn

Joined: Oct 13, 2003
Posts: 7
can someone help me PLEASE,
This is part of my code.

String fileName = inputFile.getName();
try {
String className = props.getProperty(fileName.substring(0, 3));
Its getting the file name from the local directory, and in the property file I need to check first 3 charecters of the file name and get the class name mentioned in the property file
for exmaple:
Property file
spi: com.ibm.appd.SAIAdon.class.
gca: com.ibm.appd.GCASdon.class
...
....

When testing my java file, its showing null in the class name, when I put the local file name with Capital, but when the file name is lower case its picks the proper class name from the properties file. how to solve this probs..
I know some guys r very smart here, I hope someone will help me ASAP..
thankning u
raj
Wirianto Djunaidi
Ranch Hand

Joined: Mar 20, 2001
Posts: 210

If it only work with lower case file name, how about:
 
 
subject: IgnoreCase