🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.postscript.programming
Article #1317

Re: %stdin

#1317
From: Miklos Somogyi
Date: Thu, 19 Dec 2002 13:39
25 lines
1473 bytes
Thanks and Happy Xmas, MaRC

I don't fully understand your scheme but if I need
to put my data in a file to read it by a ps
program, I might as well put the data in the ps program.

I don't know how and why, my Adobe DPS lets me open
a file for read:

(/dir/file1) (r) file /infile exch def

and lets me read from it, but

(/dir/file2) (w) file /outfile exch def

is not working, I get an invalidfileaccess error.

---

So my question still is: is it poss to read something from
%stdin in the manner of other languages (i.e. the DPS waits
until receives an lf), or not.
If not, what is the purpose of %stdin?

Miklos
Technical Details
Message-ID: <1de70e53.1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de70e53.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10c61a,6d3b51f3f3feacde
X-Google-Attributes: gid10c61a,public
X-Google-ArrivalTime: 2002-12-19 06:07:55 PST
From: "Miklos Somogyi" <som@netlink.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.postscript.programming
Subject: Re: %stdin
Message-ID: <1de70e53.1@WebX.la2eafNXanI>
Date: Thu, 19 Dec 2002 05:39:08 -0800
References: <1de70e53.-1@WebX.la2eafNXanI>
Lines: 25
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit