To allow GW-BASIC to send a "control data" string to a character device driver anytime after the driver has been opened.
file numberis the file number open to the device driver.
stringis a valid string expression containing characters that control the device.
IOCTL commands are generally 2 to 3 characters followed by an optional alphanumeric argument. An IOCTL string may be up to 255 bytes long, with commands within the string separated by semicolons.
If a user had installed a driver to replace lpt1, and that driver was able to set page length (the number of lines to print on a page before issuing a form feed), then the following lines would open the new lpt1 driver and set the page length to 66 lines:
OPEN "LPT1:" FOR OUTPUT AS #1
IOCTL #1, "PL66"
The following statements open lpt1 with an initial page length of 56 lines:
OPEN "\DEV\LPT1" FOR OUTPUT AS #1
IOCTL #1, "PL56"
All Frank Sinatra recordings, All Beatles albums, All solo albums from John Lennon, Paul McCartney, George Harrison and Ringo Starr, All Beatles songs, List of Platinum selling albums, Database with hits from 1950 to 1999.
Sought after DLL files, Nutworks magazine (retro), Worldwide ISO and TLD codes, File extensions database, The Hackers dictionary, Free software for the Atari, Amiga and Macintosh, Nokia smartphone, PocketPC, List of all BASIC programming language commands, List of all DOS commands, Free Advanced Bash-Scripting Guide (Linux-Unix)