Class IllegalFileName

Hello,
I wrote this Relevance:

if exist file "c:\test.txt" then ((names of it, locations of it ) of files (lines of file "C:\test.txt") of (folders of folder "c:\") as string) else "File Not Exist"

I run it in Analysis.

But from some reason there’s some stations (not all of them) that get this error:
The Expression could not be evaluated: class IllegalFileName

and when I run it in the QNA(graphical), I get the error input error-eval error

what’s the cause of this?

Thanks,
Ortal

What’s in your C:\test.txt file for the systems where you get the error?

1 Like

Try this:

pathnames of (files it) of lines of files "C:\test.txt"