identify existence of an ascii file in a directory
Dennis Malen
dmalen at malen.com
Wed Dec 1 15:22:47 PST 2004
MessageThanks to Scott and Faisal. Tthe "exists" command should do it.
Thanks so much!!!
Dennis
----- Original Message -----
From: Scott Walker
To: 'Dennis Malen'
Cc: Filepro_List
Sent: Wednesday, December 01, 2004 6:17 PM
Subject: RE: identify existence of an ascii file in a directory
Dennis,
See the "exists" function in fp. It seems like it will give you exactly what you're looking for.
Regards,
Scott
Scott Walker
RAM Systems Corp
Ph: (704) 896-6549
Fx: (704) 896-7458
scottw1 at alltel.net
-----Original Message-----
From: filepro-list-bounces at lists.celestial.com [mailto:filepro-list-bounces at lists.celestial.com] On Behalf Of Dennis Malen
Sent: Wednesday, December 01, 2004 6:09 PM
To: filepro-list at lists.celestial.com
Subject: identify existence of an ascii file in a directory
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/97a79c9b/attachment.html
More information about the Filepro-list
mailing list