Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!milton!sumax!thebes!polari!tonym From: tonym@polari.UUCP (Tony Mann) Newsgroups: comp.sys.mac.programmer Subject: Re: Does file exist in THINK C... Message-ID: <4167@polari.UUCP> Date: 21 May 91 16:38:55 GMT References: <1991May20.190829.3885@cs.yale.edu> Organization: Seattle Online Public Unix (206) 328-4944 Lines: 7 In article <1991May20.190829.3885@cs.yale.edu> tarr-michael@CS.YALE.EDU (Michael J. Tarr) writes: > >In THINK C (4.0.5) I wish to be able to find out if a file already >exists. In DOS the easy thing to do is access(filename, 0), but I don't >know of a comparable unix or Mac function. Any clues? One way is to call FInfo and see if you get an fnfErr (file not found).