Explanation of Why Basic Programs Can Open Devices As Files (65935)
The information in this article applies to:
- 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 Compiler for MS-DOS and OS/2 6.0b
- Microsoft Basic Professional Development System for MS-DOS 7.0
- Microsoft Basic Professional Development System for MS-DOS 7.1
- Microsoft GW-BASIC 3.2
- Microsoft GW-BASIC 3.22
- Microsoft GW-BASIC 3.23
This article was previously published under Q65935 SUMMARY
This article explains how Microsoft Basic compilers, QuickBasic, and
GW-Basic can open character device drivers as if they were files, as
in the following line of code:
OPEN "\DEV\CON" FOR OUTPUT AS #1
Basic can interact with character device drivers in this way because
this feature is built into MS-DOS.
This information applies to Microsoft QuickBasic versions 1.00, 1.01,
1.02, 2.00, 2.01, 3.00, 4.00, 4.00b, and 4.50 for MS-DOS; to Microsoft
Basic Compiler versions 6.00 and 6.00b for MS-DOS; to Microsoft Basic
Professional Development System (PDS) 7.00 and 7.10 for MS-DOS; and to
all versions of GW-Basic (3.23, 3.22, 3.20 and earlier) for MS-DOS.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB65935 |
---|
|