koo@uw-vlsi (01/15/84)
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 <shellscript> 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