Re: what about this new way of opening file

From: Bruno Desthuilliers (bdesth.tagada_at_tsoin-tsoin.free.fr)
Date: 12/22/03


Date: Mon, 22 Dec 2003 00:24:20 +0100

David M. Wilson wrote:
> "Madhur" <a_madhur@vsnl.net> wrote...
>
>
>>what about this nice way to open a file in single line rather than using
>>if and else.
>
>
>>if the file exists condition to right of OR will not be executed and if it
>>doesnt exists it returns 0 and cause the second
>>condition to be executed. printf always returns nonzero on success.
>
>
>
> Hi there,
>
> This is indeed a neat little trick.

Not even.