douglas.mcallaster@gmail.com wrote:
Folks,
Can anyone fix and post a working read-one-char job?
%---read-one-char job-fails
/strx (X) def
(donin.txt) (r) file /myworkfile exch def
{myworkfile read { strx exch 0 exch put
= }
{myworkfile closefile exit} ifelse
} loop
quit
The problem is that the "=" should be "strx ="; that is why it
doesn't work. If you make that change, then it will work. The
original code does not have any input for the = so the operand stack
is empty by that time, and it won't work.
--
Note: I am not always able to read/post messages during Monday-Friday.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)