N
N.V.Dev
Hi,
Wondering if there is a way to check if the file exists having case insentive.
For example, I have a file in Unix Alex.doc
If I try checking for the file
File file = new File ("alex.doc");
File.exists () should return true
If this is not possible, is there any easy work-around
I understand, I could do an "alex.doc".toUpper() or "alex.doc".toLower()
and check the file. What if the file is in Mixed case.
Let me know how to resolve this.
Thanks in advance,
Dev
Wondering if there is a way to check if the file exists having case insentive.
For example, I have a file in Unix Alex.doc
If I try checking for the file
File file = new File ("alex.doc");
File.exists () should return true
If this is not possible, is there any easy work-around
I understand, I could do an "alex.doc".toUpper() or "alex.doc".toLower()
and check the file. What if the file is in Mixed case.
Let me know how to resolve this.
Thanks in advance,
Dev