⎕nread vs. ]snap
Posted: Fri Mar 15, 2019 5:19 pm
I am fairly happily using ]snap to save APL source text as .dyalog files.
However, I have a problem:
The .dyalog file looks fine with cat and vi, under Ubuntu 18.04LTS.
It also works fine with ]load.
I am unable to read the file into APL as readable text, using ⎕nread.
I tried several conversion codes, with no joy, and also tried a
(⍳256)⎕nxlate ntn, which did not help either.
If I use ⎕nget, it works okay, e.g.:
Logistic←{ ⍝ Sigmoid
÷1+(-⍵}
UTF-8-NOBOM
10
but I still want to know how to make it work with ⎕nread.
Thanks,
Bob
However, I have a problem:
The .dyalog file looks fine with cat and vi, under Ubuntu 18.04LTS.
It also works fine with ]load.
I am unable to read the file into APL as readable text, using ⎕nread.
I tried several conversion codes, with no joy, and also tried a
(⍳256)⎕nxlate ntn, which did not help either.
If I use ⎕nget, it works okay, e.g.:
Logistic←{ ⍝ Sigmoid
÷1+(-⍵}
UTF-8-NOBOM
10
but I still want to know how to make it work with ⎕nread.
Thanks,
Bob