Christian Froeschlin wrote:
> Ger wrote:
>
>> #fopen FN FileName read
>> #ifdef (FN)
>> #while (defined(FN))
>> #read ( FN , Vector)
>> action( Vector )
>> #end
>> #end
>
> the documentation of #fopen states that IDENTIFIER should be
> an undefined identifier. So it might be that the #ifdef test
> only works if FN was not alreaday defined prior to #fopen.
From the manual
<
You may use #ifdef FILE_HANDLE_IDENTIFIER to see if a file is open.
>
--
Ger
Post a reply to this message
|