B
backgoodoo
Hello
Does anyone know how to find out whether a file exists or not?
TIA
Does anyone know how to find out whether a file exists or not?
TIA
Hello
Does anyone know how to find out whether a file exists or not?
Does anyone know how to find out whether a file exists or not?
if (-f $filename) {
# $filename is a file which exists
}
Full list of tests:http://perldoc.perl.org/functions/-X.html
A couple of seconds Googling probably would have found you the answer.
Cheers
David Precious
Let me clarify my question again.
I want to search a file I do not know where it is but know its name
such as "text.exe".
I want to search a file I do not know where it is but know its name
such as "text.exe".
....
Let me clarify my question again.
I want to search a file I do not know where it is but know its name
such as "text.exe".
So I want to check whether or not it is under c:\program file and sub
folders.
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.