Added October 2015
The special file name .NULL may be used with sequential files to open a file which is not connected to anything. For example:
OPEN #1, .NULL, OUTPUT
OPEN #2, .NULL, INPUT
For output, .NULL is equivalent to the device /dev/null under UNIX and NUL under Windows, i.e.any data output to the file is just discarded. For input, .NULL acts like an empty input file (returns EOF on the first input attempt).
The ability to associate an output file channel with a null device adds to the flexiblity of the PRINT #CH statement, since depending on the value of CH and what file it is associated with, the statement can output to the screen (if CH=0), a disk file, or nothing at all. Also see MX_FILESOCK.
See Also
• .NULL Dot Variable
History
2016 September, A-Shell 6.3.1524: Function added to A-Shell.