Output Redirection of the BASIC "FILES" Command
Original Publication Date: 1987-Feb-01
Included in the Prior Art Database: 2005-Jan-31
A method is described which allows a programmer to design his BASIC program so that he does not need to rely on user input to get the name(s) of file(s) that are needed by his program. The Color Selection Program for the IBM PC 3270 Emulation Program must know the exact name of a certain load module in order to open it for input/output. This program should not require a user to know the name of the load module or to have to key in the name. The Color Selection Program is written in BASIC. There is no BASIC command that searches a directory for a partially qualified file name and returns the exact name in a variable to an executing program. The BASIC "FILES" command partially fills this requirement, but is limited in that it directs its output to the screen.