Please excuse typos; composed on a handheld device.

-----Original Message-----
From: Tikkanz <[email protected]>
Sender: [email protected]
Date: Thu, 30 Dec 2010 13:52:27 
To: Programming forum<[email protected]>
Reply-To: Programming forum <[email protected]>
Subject: Re: [Jprogramming] Testing for presence of file on disk?

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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to