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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

file exist?

Status
Not open for further replies.

antdickens

Programmer
Nov 13, 2001
129
GB
is there anyway of checking if a file exists,

also how to create a blank file ready to write to

cheers

ant
 
To create a blank file you just need to use the open command

Open pathname & filename for append as filenumber

If the file does not exist then it will create the file for you. To check to see if the file exists use the dir function with the full path and file name e.g.

Dir(filename)

if the file exists the filename will be returned if it does not then an empty string is returned.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top