Rob Richardson wrote: > Greetings! > > If I remember correctly, in either Visual C++ or Visual Basic (or > both) there is a way to call open() (or its equivalent) for appending > and to have it fail if the file doesn't previously exist. Is there a > way to do that in Perl? > > Merely curious -- I'm not likely to need this in the near future.
Hi Rob As far as I know there's no way to do it with the standard 'open' call, but if you leave O_CREAT off a 'sysopen' call it should complain if the file's not already there. something like: sysopen OUT, file.txt, O_WRONLY | O_APPEND; Cheers, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]