I/O to a File OPENed as "NUL" or "NUL.xxx" Does Nothing (31939)
The information in this article applies to:
- Microsoft QuickBASIC 1.0
- Microsoft QuickBASIC 1.01
- Microsoft QuickBASIC 1.02
- Microsoft QuickBASIC 2.0
- Microsoft QuickBASIC 2.01
- Microsoft QuickBASIC 3.0
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBASIC 4.5
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
- Microsoft GW-Basic Interpreter
This article was previously published under Q31939 SUMMARY
Basic will allow input from or output to the DOS null device, which is
a file named "NUL" or "NUL.xxx" (where "xxx" can be any set of none,
one, two, or three alphanumeric letters). The DOS null device is
always empty when you input from it and is never created on disk when
you write to it.
This information applies to the following products:
- Microsoft QuickBasic Compiler Versions 1.00, 1.01, 1.02, 2.00,
2.01, 3.00, 4.00, 4.00b and 4.50 for the IBM PC
- Microsoft Basic Compiler Version 6.00 for MS-DOS and MS OS/2
- Microsoft Basic PDS Version 7.00 for MS-DOS and OS/2
- Microsoft GW-Basic Interpreter Version 3.20
Modification Type: | Minor | Last Reviewed: | 1/9/2003 |
---|
Keywords: | KB31939 |
---|
|