If the purpose is to read the file if it exists, just go ahead and use fread which will return _1 if the file does not exist. Just test for _1 after the fread.
On Wed, Dec 29, 2010 at 7:33 PM, bill lam <[email protected]> wrote: > fexist is a wrapper of 1!:4 (size), which behaves differently on linux and > windows. On linux it looks at i-node so that it return a non-zero size for > directoy, whereas on windows, it will raise an error. > > The dirutils addons by Ric provides another verb for test directory > existence which also works for window. > > Срд, 29 Дек 2010, Charles Turner писал(а): > > On Dec 29, 2010, at 7:52 PM, Tikkanz wrote: > > > > > fexist jpath '~temp/xyz.txt' > > > > Thanks, Ric- I was so stuck on the foreigns that I forgot J had its own > set of file verbs! > > > > Best, C > > > > > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > -- > regards, > ==================================================== > GPG key 1024D/4434BAB3 2008-08-24 > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
