In J602 it is part of the files.ijs script and needs to be loaded:
require 'files'
fexist jpath '~temp/xyz.txt'

In J701 the files script has been merged into stdlib.ijs.

http://www.jsoftware.com/trac/base7/browser/trunk/main/main/files.ijs

On Thu, Dec 30, 2010 at 1:39 PM, Charles Turner <[email protected]> wrote:
> Hi all-
>
> A beginner's question:
>
> How would I ask J to determine whether a certain file exists on disk?
>
> Something like:
>
> ifexists jpath '~temp/xyz.txt'
>
> which would return a boolean 0 or 1.
>
> ?
>
> Thanks, Charles
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to