In my program, a user inputs his name into a field. When "enter" is
clicked, a text file called "userName.txt" is created on user's hard drive.
I want to make it so that next time the program is opened, it checks to see
if "userName.txt" exists already. If it does exist, it will go to the last
page visited. If it doesn't exist, it will give the user a chance to input
his name.
How do I check to see if this file exists? I was playing around with
objectP, but I can't get it to work.
Any suggestions?
Thanks,
Jon
clicked, a text file called "userName.txt" is created on user's hard drive.
I want to make it so that next time the program is opened, it checks to see
if "userName.txt" exists already. If it does exist, it will go to the last
page visited. If it doesn't exist, it will give the user a chance to input
his name.
How do I check to see if this file exists? I was playing around with
objectP, but I can't get it to work.
Any suggestions?
Thanks,
Jon