almostsane
05-15-2003, 07:42 PM
Hi...
I'm Making a Exam making program for my HSC major work, and i've run into an issue..
My program has multiple user accounts, with each user's information saved in a file called "username.eef". when they log-on it opens there file to access there information and load it into an array.
If the user inputs an invalid username, they get the "Runtime Error: '53' - File Not Found" messagebox. i was wondering if there is anyway to check in a folder if there is a file??
eg i want to check for the "username.eef" is there for the username they entered is located in the folder, that way it checks for the file, before attempting to open it.
this way if they enter an invalid username, it will say "Invalid Username" insted of "File Not Found"
i can do this by having an index of usernames, and checking it, but that leaves it open for curtain errors.
thank you for your help
I'm Making a Exam making program for my HSC major work, and i've run into an issue..
My program has multiple user accounts, with each user's information saved in a file called "username.eef". when they log-on it opens there file to access there information and load it into an array.
If the user inputs an invalid username, they get the "Runtime Error: '53' - File Not Found" messagebox. i was wondering if there is anyway to check in a folder if there is a file??
eg i want to check for the "username.eef" is there for the username they entered is located in the folder, that way it checks for the file, before attempting to open it.
this way if they enter an invalid username, it will say "Invalid Username" insted of "File Not Found"
i can do this by having an index of usernames, and checking it, but that leaves it open for curtain errors.
thank you for your help