comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Unsatisfactory 'file_test()' behavior
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Unsatisfactory 'file_test()' behavior [message #28563 is a reply to message #28433] Tue, 18 December 2001 08:09 Go to previous message
Dick Jackson is currently offline  Dick Jackson
Messages: 347
Registered: August 1998
Senior Member
"Paul van Delst" <paul.vandelst@noaa.gov> wrote in message
news:3C1E0DEA.7E4D534E@noaa.gov...
>> Matt Feinstein (mfein@clark.net) writes:
>>
>>> If I do
>>>
>>> e = file_test('')
>>>
>>> that is, test for the existence of a file whose name is a zero-length
>>> string, I get e = 1. This is not good ! (Using IDL v5.4 WinNT 4.0).
> p.s.:
>
> IDL> print, !version
> { x86 linux unix 5.4.1 Jan 16 2001 32 32}
> IDL> print, file_test('')
> 0
>
> Looks like it may have something to do with the, uh..er, "fluctuating
properties" of Windows.

Fluctuating, indeed!...

=====

IDL Version 5.4 (Win32 x86). (c) 2000, Research Systems, Inc.

IDL> print, file_test('')
1
=====

IDL Version 5.5, Microsoft Windows (Win32 x86). (c) 2001, Research Systems,
Inc.

IDL> print, file_test('')
0
=====

Perhaps this is considered to be fixed now.

--
-Dick

Dick Jackson / dick@d-jackson.com
D-Jackson Software Consulting / http://www.d-jackson.com
Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: XML and IDL?
Next Topic: David Stern Leaves RSI

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 10:20:33 PDT 2025

Total time taken to generate the page: 1.20098 seconds