How to test for a file?

  • Thread starter Thread starter Kwong
  • Start date Start date
K

Kwong

Hi,
How am I going to test whether a file is exist in a folder
before I can try to open it?
 
* "Kwong said:
How am I going to test whether a file is exist in a folder
before I can try to open it?

Have a look at the classes in the namespace 'System.IO': 'File.Exists',
'Directory.Exists'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top