I have an action performed on the click of a button which basically opens up a text file based on the textfield input of the user. I would like to use an if statement to say if the variable already exists to give a message saying file name already used. I didn't want to use file reader as I wanted to specify the exact location of the files.
I have put an if statement inside the try catch of the action performed, but it won't work?? Can anyone explain where I am going wrong?
Thanks.
Annette
I have put an if statement inside the try catch of the action performed, but it won't work?? Can anyone explain where I am going wrong?
Thanks.
Annette
Comment