Link to home
Create AccountLog in
Avatar of Al4ddin2
Al4ddin2

asked on

Classic ASP, adding a check if file exists...

Linked with this thread

how do I add in a check to make sure the XML file exists? If it doesn't then just use a default image in the same way?

Thanks
Avatar of Al4ddin2
Al4ddin2

ASKER

Ideally done here...

filename=Server.MapPath "/files/items.xml"

So if no path is set then it uses a default value?!

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account