Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #3497
| From | news@zzo38computer.org.invalid |
|---|---|
| Newsgroups | comp.lang.postscript |
| Subject | Re: file operations. |
| Date | 2020-03-08 14:39 -0700 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <1583703381.bystand@zzo38computer.org> (permalink) |
| References | <45079feb-1563-47ba-9cdf-02bdc86e3b2c@googlegroups.com> |
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.
Back to comp.lang.postscript | Previous | Next — Previous in thread | Find similar
file operations. douglas.mcallaster@gmail.com - 2020-03-08 09:44 -0700 Re: file operations. news@zzo38computer.org.invalid - 2020-03-08 14:39 -0700
csiph-web