Article View: comp.lang.postscript
Article #4161Accessing files in Postscript (unix)
From: Joseph Good
Date: Fri, 16 Oct 1992 09:32
Date: Fri, 16 Oct 1992 09:32
56 lines
1809 bytes
1809 bytes
Okay, bear with me - I am a very unexperienced PostScript user, and
the only PostScript book at our library is lost.. ACK!
I am trying to access files using PostScript.
I have this so far.
/fp (~/input.dat) (r) file def
/so (%stdout) (w) file def
Correct me if I am wrong, but this defines fp to read from the
~/input.dat file, while /so will print to the stdout.
Now, here is where I go screwey..
{
fp ( )
readstring
not {so exch writehexstring (\n) print exit} if
so exch writehexstring (\n) print
} loop
flush
I keep getting an invalidaccess for the readstring command.
Is there something I should be putting as an argument for fp?
suffering from severe brain drain...
-jdg
---
Joseph Good
+-------------------+ - More than just a band....
| Green Dot Brigade | - It's a whole damn army of dots...
+-------------------+ - And we've declared war on the 7-Up dots...
rscott@nmsu.edu (NeXT mail welcome!!) (main account)
atlantis@acca.nmsu.edu (Just plain ol' Unix) (seldom used)
--
Joseph Good
+-------------------+ - More than just a band....
| Green Dot Brigade | - It's a whole damn army of dots...
+-------------------+ - And we've declared war on the 7-Up dots...
rscott@nmsu.edu (NeXT mail welcome!!) (main account)
atlantis@acca.nmsu.edu (Just plain ol' Unix) (seldom used)
Technical Details
Message-ID:
<1992Oct16.093248.29493@nmsu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!lynx!nmsu.edu!usenetShow Full Headers
Complete Article Headers
Newsgroups: comp.lang.postscript Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!lynx!nmsu.edu!usenet From: rscott@spock.NMSU.Edu (Joseph Good) Subject: Accessing files in Postscript (unix) Message-ID: <1992Oct16.093248.29493@nmsu.edu> Sender: usenet@nmsu.edu Organization: New Mexico State University Date: Fri, 16 Oct 1992 09:32:48 GMT Lines: 56