identify existence of an ascii file in a directory

Dennis Malen dmalen at malen.com
Wed Dec 1 15:09:03 PST 2004


I would like to do the following:

I want to add a header to an ascii file using the export command. I have no problem doing it on the creation of the file but this file will be exported to daily until it gets to a certain size, at which time it will be removed.

As an export statement can easily append to the file once it is in existence, I want to know if the file is there each time I start to export. If not processing will then create the header (which is a one time event in the life of this file). Once created then I can export to the file without having to initiate sending the header.

Question: How can I determine that the file does or does not exist. Important point: This should not be visual as the processing has to be able to tell if its there and do its job. It must be automated and part of the processing.

Can anyone help me or put me in the right direction. I am on 4.8.

Thanks!

Dennis Malen
516.479.5912
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.celestial.com/pipermail/filepro-list/attachments/20041201/bcf99a38/attachment.html


More information about the Filepro-list mailing list