Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!decwrl!adobe!taft From: taft@adobe.com (Ed Taft) Newsgroups: comp.lang.postscript Subject: Re: open files vs. save/restore Message-ID: <10022@adobe.UUCP> Date: 17 Jan 91 00:17:30 GMT References: <48.UUL1.3#5127@aladdin.com> Sender: news@adobe.COM Reply-To: taft@adobe.COM (Ed Taft) Organization: Adobe Systems Incorporated, Mountain View Lines: 13 In article <48.UUL1.3#5127@aladdin.com> ghost@aladdin.com (L. Peter Deutsch) writes: >The PostScript Language Reference Manual clearly states that if a >file is opened after a save, the corresponding restore will close the >file. What about the converse? If an open file is closed after a >save, does the restore reopen (and reposition??) the file? No. Side-effects of file operators (writing, repositioning, closing, etc.) are never undone by restore. The automatic closing of files by restore (and by garbage collection in Level 2) is merely a convenience. It ensures that the underlying file is not kept open artificially when it is no longer accessible at the PostScript language level. Ed Taft taft@adobe.com ...decwrl!adobe!taft