Hello,
I am taking your advice and turn to adir()!
Thank you for helping out,
Ivo Hubert
>Nothing is wrong. Just file() is not a reliable function. Use ?adir(..)>0 instead.
>Best Wishes.
>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>Does the SMS.ini exist in another path? If file doesn't find it at the specified location, it will look down the given paths. I stopped using file() long time ago and used adir() instead. That only looks where you tell it.
>
>If that isn't it - then I'm as baffled as you :-)
>
>
>>Hello everyone,
>>
>>In an application I check if a file exists with the file()-funtion.
>>
>>I have used this function for many years, without a problem, all very straightforward.
>>
>>But now I have one application who gives on a workstation a result .T., while the file does not exist on it and has never existed there.
>>
>>It is an NT-workstation and the syntax is:
>>
>>if file("c:\station\sms.ini")
>>endif
>>
>>What is wrong?
>>
>>Best regards,