I suspect you are using Mac OS Catalina or later … where Apple introduced 
protection on key folders (mainly from 3rd party apps).
See this article for details: 
https://nektony.com/duplicate-finder-free/folders-permission

You can either:
        - grant access using Settings / Security & Privacy to allow J (probably 
Qt, but I don’t know) to access the Desktop
        - work in a separate folder (which is what I do)

I reproduced your error by creating a file using text edit and saving to 
Desktop, then also to a new folder (work).
Note: I had to add permission to iTerm (my terminal program) just to “ls” the 
files in Desktop as I could not see them until I did that.

Then I used the native <fread> function (your <mread> is just a wrapper to 
<fread>) to directly read and compare for an error result:

In J on my system:

   fread '/Users/rob/Desktop/test.txt'
_1

   fread '/Users/rob/work/test.txt'
col1,col2,cold
10,20,30
110,120,130

The Catalina (&later) security is a pain (it is there for your protection, but 
still a pain), so I prefer to work in a non key folder to work on docs like 
this.

Please confirm if this resolves your issue Patrick…/Rob


> On 29 Aug 2021, at 6:40 am, J. Patrick Harrington <[email protected]> wrote:
> 
> I've installed j903 Beta-o on both my Dell xps running Linux Ubuntu and my 
> Mac-mini running OS 11. I have a file which I read with
> 
> D=. mread < '/Users/jph/Desktop/HS-20Aug-A2.dat'    where mread=: 
> (_&".)@('m'&fread)
> 
> This works fine under linux, but fails with
> 
> domain error: mread
> 
> on the Mac. Strangely, running jconsole on the Mac, the read works OK. Any 
> idea why the Mac fails under Qt while under Ubuntu it is fine. BTW, jqt on 
> the Mac running j902 has no problem - this just appeared in 903.
> 
> Patrick
> 
> ----------------------------------------------------------------------
> 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