How do I test for the existens of a file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How do I test for the existens of a file

TheLonelyStar
Hi,

I want to test if a specific file exist, and do something if yes. Like

if <file exist> then
  <do something>
else
  <do something else>
end

How do I do that?

Thanks!
Nathan