Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!harpo!ihnp4!alberta!ubc-vision!uw-beaver!uw-june!uw-vlsi!koo From: koo@uw-vlsi Newsgroups: net.lang.pascal Subject: Please help with External Files Message-ID: <362@uw-vlsi.UUCP> Date: Sat, 14-Jan-84 20:10:48 EST Article-I.D.: uw-vlsi.362 Posted: Sat Jan 14 20:10:48 1984 Date-Received: Mon, 16-Jan-84 05:25:00 EST Lines: 25 I am trying to read in a bunch of external files in which the filenames are variable (using the UNIX operating system). I know of 2 ways that I can do this ---- but I am not quite satisfied with either. Does anyone out there know a better way? (I am attempting to use "standard" PASCAL on the UNIX) METHOD 1: Use the method suggested by Jensen & Wirth program (Input, Output, File1, File2,..); METHOD 2: Use the UNIX shell script to input the file names File1 File2 ... METHOD 2 is better, except for the fact that it requires that I know what File2 is. That information is stored as a STRING within the first file (i.e. File1). How can I do it so that I don't have to read File1 to find what File2 is? (i.e. Is there a way that I can change the STRING to a FILE POINTER? Or is there no way out? ) Thanks in advance, koo@uw-june