Thread View: net.lang.pascal
1 messages
1 total messages
Started by koo
Sun, 15 Jan 1984 01:10
Please help with External Files
Author: koo
Date: Sun, 15 Jan 1984 01:10
Date: Sun, 15 Jan 1984 01:10
25 lines
1319 bytes
1319 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads