Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!jlg0805 From: jlg0805@uxa.cso.uiuc.edu Newsgroups: comp.lang.pascal Subject: Read Files, How? Message-ID: <50800002@uxa.cso.uiuc.edu> Date: 30 May 90 05:17:00 GMT Lines: 23 Nf-ID: #N:uxa.cso.uiuc.edu:50800002:000:706 Nf-From: uxa.cso.uiuc.edu!jlg0805 May 30 00:17:00 1990 On standard Pascal, how can one interactively input a file name, then ask the program to read the file; ask the program to load another file and repeat the same thing. as my understanding, the external file name shoud appear in the program header. However, this only works if actually there is a file with that very name. If files have different names, then the machine gives an error. (mine is a sequent running unix), telling me "file not existent" or something like that. how to solve this problem? i hope it is not that one recompiles the program for each new file. --The profs never teach useful practical things but stuff like AVL trees in class. :-( J.Liang jlg0805@uxa.cso.uiuc.edu