Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!mit-eddie!uw-beaver!cornell!batcomputer!prove From: prove@batcomputer.tn.cornell.edu (Roger Ove) Newsgroups: comp.windows.news Subject: Re: How to find out if a file exists Summary: file existence Message-ID: <8130@batcomputer.tn.cornell.edu> Date: 6 Jun 89 17:48:14 GMT References: <7506@hoptoad.uucp> <8087@batcomputer.tn.cornell.edu> Organization: Theory Center, Cornell U., Ithaca NY Lines: 18 In article , hh@tut.fi (Halme Heikki) writes: > > The routine /fileexists in init.ps does work, just try it! So, what > else is there that is commented out and works just fine? > I tried this and it fails when the file doesn't exist, it bombs with the error "undefinedfilename" and terminates the process. Works fine if the file is there, hardly a satisfactory substitute. It seems that I would have to do my own error handling to make this work. No doubt you checked both cases before writing this, perhaps the bug has been fixed in the new release? I tested it on NeWS 1.1. That might explain why it was commented out even though it worked for you. Roger Ove