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 _______________________________________________ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell