For Programmers: Free Programming Magazines  


Home > Archive > Clarion > September 2005 > Re: Opening a file









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Opening a file
Nelson Kaye

2005-09-23, 6:55 pm

Tim,

The EXISTS() works fine. I actually OMITTED the template code for open
as I want to create it only in certain circumstances tested later on within
the proc. I therefore test via EXISTS: if it doesn't I create it, then open
it, and add a control record; otherwise I just open it.

Thanks,
Nelson


"Tim Phillips" <tim.phillips@anr.state.vt.us> wrote in message
news:ara8j19lf188dm3om9isqjkp1ob5i12hs8@
4ax.com...
> Leave the file defined in OTHER FILES.
> look in the code and get ahead of where the template code is trying to
> open the file.
> Use EXISTS() to check to see if the file is present and create it if
> it is not before the program tries to open it.
> Tim
>
file[color=darkred]
beginning.[color=darkred]
many[color=darkred]
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com