Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!mit-eddie!genrad!decvax!tektronix!reed!omssw2!dshovax!bobd From: bobd@dshovax.UUCP Newsgroups: comp.lang.pascal Subject: Re: VMS Pascal help needed Message-ID: <536@dshovax.UUCP> Date: Tue, 17-Feb-87 15:39:02 EST Article-I.D.: dshovax.536 Posted: Tue Feb 17 15:39:02 1987 Date-Received: Thu, 19-Feb-87 18:55:17 EST References: <382@umnd-cs-gw.umnd-cs.UUCP> Reply-To: bobd@dshovax.UUCP (Bob Dietrich) Organization: Intel Corp., Hillsboro, Oregon Lines: 53 In article <382@umnd-cs-gw.umnd-cs.UUCP> jwabik@umnd-cs.UUCP (Jeff Wabik) writes: > >Help! > >I've misplaced (allright.. I lost) our VMS "Programmers" Pascal manual, >and now am having some headaches trying to do file manipulations. > >Can anyone explain the following to me: > > > How to to RESET and REWRITE filenames stored > (for example) in a character array. I.E. Somehow > associating the "text" variable name with a > filename in a character array. > Use open to associate a file name in a string with an external file. > Is the OPEN statement required? > Yes, for what you want to do and various other things. I can't explain them all (you'd better get another manual), but for associating a name with a file: open( f, fname); reset( f); { or rewrite(f) } or you can use the form: open( f, filename := fname); > WHY oh.. WHY is VMS Pascal so bass ackwards? > Compared to what? Not that I'm a rabid fan, but I have used VMS Pascal to do systems programming without any major problems. At least they didn't pervert reset and rewrite, which is truly bass ackwards. Note that the draft proposed Extended Pascal does things this way, although (for good reasons I won't get into here) the procedure is called "bind". > >Thanks in advance .. > >=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= >=- Jeff Wabik, UMD Computing Services, University of Minnesota, Duluth -= >=- ihnp4!umn-cs!umn-d-cs!jwabik -= >=- "I feel fine." - Spock, Star Trek IV. A sad day for all TRUE trekkies.-= >=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-= Bob Dietrich Intel Corporation, Hillsboro, Oregon (503) 681-2092 usenet: tektronix!reed!omssw2!dshovax!bobd