I know I've done it in the past by creating a new File object, then checking its
existance vis the exists() method. I am sure there are better ways to do it, but
I am not as weathered as many others on this list. If someone has a better
way, I would like to hear it as well.
-Riyad
[EMAIL PROTECTED] wrote:
> Hi, All!
>
> I have generic question:
> Is there any PLATFORM_INDEPENDENT way to test if given String defines a valid
> file name without actually trying to create the file. I want to perfom such
> test in the KeyEvent handler and attempting to create file every time doesn't
> sound good to me.
>
> Thanks.
>
> ----------------------------------
> E-Mail: [EMAIL PROTECTED]
> Date: 20-Oct-99
> Time: 11:34:40
>
> Andrey.
> ----------------------------------
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
[ Riyad Kalla ]
[ [EMAIL PROTECTED] ]
[ CS - Major ]
[ University of Arizona ]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]