|
From: Petr M. <mi...@ph...> - 2006-03-05 20:00:46
|
>> The routine fileexist() is for files only; it makes no sense for pipes.
>> For pipes, do
>> if (fileexist('a.dat')) plot '<tr . , a.dat'
>
> Sure. But that is only possible if you already know whether it is a
> pipe or not. What about the case where you want to put the
> fileexist() test in a loadable routine that is passed the filename
> string as a parameter?
Then it needs yet another routine pipeexist().
---
PM
|