Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!ihnp4!chinet!nucsrl!gore From: gore@nucsrl.UUCP Newsgroups: comp.lang.pascal Subject: Re: VMS Pascal help needed Message-ID: <4020001@nucsrl.UUCP> Date: Sun, 8-Feb-87 17:21:31 EST Article-I.D.: nucsrl.4020001 Posted: Sun Feb 8 17:21:31 1987 Date-Received: Tue, 10-Feb-87 05:46:00 EST References: <382@umnd-cs-gw.umnd-cs.UUCP> Organization: Northwestern Univ., Evanston IL Lines: 24 / jwabik@umnd-cs.UUCP (Jeff Wabik) / 4:05 pm Feb 6, 1987 / > > 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. > > Is the OPEN statement required? > > WHY oh.. WHY is VMS Pascal so bass ackwards? I don't know what you are comparing it (VMS Pascal) with, but in every Pascal I've seen, RESET and REWRITE took file *variables*, not file names, as arguments. The OPEN function is intended to do precisely what you want to do: to associate a file on disk that is identified by a file name (a character string) with a file variable in the Pascal program. What's your gripe? Jacob Gore Northwestern University, Computer Science Research Lab {ihnp4,chinet}!nucsrl!gore