URGENT: File exists
bracaman@box.sk
bracaman@box.sk
Sat, 3 Nov 2001 10:56:38 +0000
I need to create a function that checks if a file exists. My intention is to do something like:
teste :: String -> Bool (Beeing the String the FilePath)
I've tried to use openFile and catch functions, but i couldn't put it working. The purpose of this function
is to test a file before trying to read it. Example:
if (test "filepath") then readfile else fail
Thank you very much for your help,
Joao
------------------------------------
geek code inside :: powered by linux