identify existence of an ascii file in a directory
Scott Walker
scottw1 at alltel.net
Wed Dec 1 15:17:56 PST 2004
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/c1cd98a1/attachment-0001.html
More information about the Filepro-list
mailing list