Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

does file exist?

Status
Not open for further replies.

manfishj

Programmer
May 30, 2002
44
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top